Order Flow CandlesOrder Flow Candles is an advanced candle coloring indicator that visualizes the strength and direction of market pressure on each bar. Unlike traditional candlestick charts that simply show whether price closed higher or lower than it opened, this indicator reveals the intensity of buying or selling pressure through a gradient color system. The indicator employs custom formulas that combine two independent analysis methods—price action scoring and order flow analysis—to produce a pressure reading that determines each candle's directional color intensity.
-------------------------------------------------------------------
The Dual Analysis Approach
This indicator stands apart from simple candle coloring tools by using two distinct analytical layers that work together:
Price Action Analysis evaluates each candle's structure and compares it to multiple previous candles. Rather than looking at a single bar in isolation, the indicator examines how the current candle's size and values compare across several prior bars to establish context. This multi-candle approach helps distinguish between genuine momentum and single-bar noise. The analysis considers factors such as whether the candle is extending beyond previous ranges or failing to do so, whether the candle size indicates conviction or indecision, and whether the overall range suggests strength or weakness. Proprietary adjustment algorithms then modify the raw score based on candle characteristics—smaller, weaker candles receive reduced scores while larger conviction candles receive appropriate emphasis. Gap bars at market open are handled separately to prevent misleading readings from overnight price changes.
Order Flow Analysis examines lower timeframe data to determine actual buying versus selling volume within each chart bar. By analyzing price movements and their associated volume on a granular level, the indicator classifies activity as buying pressure or selling pressure. This raw data is then normalized using adaptive calculations based on rolling historical averages, allowing the indicator to respond appropriately to current market conditions rather than relying on fixed thresholds that may not suit all instruments or market environments.
The two scores are then blended together based on user preference, creating a combined pressure reading that benefits from both analytical perspectives.
-------------------------------------------------------------------
Understanding The Color System
The indicator uses a 10-tier gradient in each direction:
Bright Green - Strong buying pressure with high conviction
Medium Green - Moderate buying pressure
Dim Green - Weak buying pressure or mixed signals
Gray - Neutral—no significant directional pressure
Dim Red - Weak selling pressure or mixed signals
Medium Red - Moderate selling pressure
Bright Red - Strong selling pressure with high conviction
The key insight is that candle direction alone does not tell the full story. Strong candles with strong directional volume and movement will show bright colors to represent the strength of that candle’s direction. Weak and indecisive candles will appear darker to indicate that there was a lack of directional conviction.
The colors used can be customized by setting the bullish color, bearish color and base color. The base color will be mixed with the directional color when directional conviction is low.
-------------------------------------------------------------------
How To Use This To Trade
Trend Confirmation and Trade Management
Bright colored candles indicate strength and conviction. When you see consecutive bright candles in the same direction, this suggests sustained momentum worth riding. During these moves, consider trailing your stop loss tightly to protect profits while allowing the trend to continue. The brightness of the candles serves as a real-time gauge of how much conviction remains in the move.
Reversal Detection
Reversals typically do not occur suddenly. Watch for a darkening of colors leading up to potential reversal points. Darker, dimmer candles indicate indecision and combative pressure from both buyers and sellers. When bright candles begin transitioning toward gray or dim colors—especially at key support/resistance levels—this often precedes a change in direction. A sequence like bright → medium → dim → gray suggests momentum is fading and a reversal or consolidation may follow.
Entry Identification
Large bright candles appearing at pivot points or key levels often represent strong entry opportunities. These candles show that one side has taken decisive control with conviction. When price reaches a significant support or resistance level and produces a bright candle in the expected direction, this confluence of price level and pressure confirmation can provide higher-probability entries.
Detecting False Moves
One of the most valuable applications involves watching for color-to-direction discrepancies when using volume weighting. If you see a green candle (close above open) but the indicator colors it toward red or gray, this means the underlying volume pressure contradicts the candle's direction. This divergence suggests the move may be false and could soon reverse. The order flow component is detecting selling pressure despite the bullish candle structure—a warning sign that the apparent strength lacks genuine support.
Consolidation Recognition
Extended periods of gray or dim candles indicate low conviction and indecision. These periods often represent consolidation ranges where neither buyers nor sellers have control. Such conditions may precede significant breakouts, making them useful for identifying potential setup zones.
Validating Areas Of Interest
Watch the candle colors and you will notice that in tight ranges, the candles will be darker and rarely have very bright colors, but once price reaches the edges of a range and has multiple bright colored candles, this validates that traders are now ready to move outside of that range and place directional trades. Use the bright colored candles to reveal where traders are interested in entering positions and use that conviction to your advantage.
-------------------------------------------------------------------
Settings Guide
Lower Timeframe - Sets the granularity for volume analysis. Lower timeframes like 1T provide more detailed data but may have limited historical depth on TradingView. Adjust based on your chart timeframe and data availability.
Price Action Influence % - Controls the blend between price action scoring and volume/order flow scoring. At 0%, the indicator uses pure order flow analysis. At 100%, it uses pure price action analysis. The default 50% provides equal weighting to both methods. Consider increasing toward 100% for instruments with unreliable volume data such as forex pairs or certain CFDs. For futures contracts with excellent volume reporting, values around 50% often work well.
Candle Color Settings - Customize the buy color (default bright green), sell color (default red), and base/neutral color (default gray) to match your chart theme and personal preferences.
Fix Loading Error - Toggle this checkbox if the indicator fails to load, displays incorrectly or starts lagging. This forces TradingView to restart the indicator and typically resolves any issues.
-------------------------------------------------------------------
Instrument and Timeframe Considerations
The order flow component requires reliable volume data for optimal results. Consider these guidelines:
Futures: Generally provide excellent volume data and work well with lower Price Action Influence settings
Stocks: Good volume data during regular trading hours
Forex: Volume reliability varies by exchange; test before relying heavily on volume scoring
Crypto: Volume reliability varies by exchange; test before relying heavily on volume scoring
Index CFDs: Often have poor volume data; higher Price Action Influence recommended
Higher timeframes (daily, weekly) typically produce more reliable color readings with less noise. Lower timeframes can be useful for timing entries within the context of higher timeframe analysis.
The indicator requires a brief initialization period—approximately 60 bars for full accuracy as the adaptive calculations populate their historical reference data.
-------------------------------------------------------------------
Practical Guidance
Order Flow Candles works effectively when combined with other analysis methods. Consider using it alongside support/resistance levels, where bright candles at key zones can confirm breakouts or bounces. Volume profile analysis pairs naturally with this indicator, as does traditional structure and trend analysis.
The indicator is designed as a visualization and decision-support tool. It helps quantify and display information that might otherwise require mentally processing multiple data points. However, profitable trading requires more than entry signals—risk management, position sizing, and broader market context remain essential components of any complete trading approach.
-------------------------------------------------------------------
Limitations
When using any amount of volume weighting, the candles will show as grey until it has had enough previous bars to establish baseline averages to use for calculations. When using tick data on higher than 1 minute charts, the number of chart bars you get data will be limited, so try adjusting the lower timeframe to use a higher timeframe for more data. Or you can switch to 100% price action influence to get price action only candle coloring for the entire data set
Volume analysis accuracy depends entirely on the quality of volume data available for your chosen instrument so make sure to look at charts with the most reliable volume data for best results
Lower timeframe data has limited historical depth on TradingView; older bars may have less accurate order flow readings
First bars of new trading sessions (gap bars) are scored conservatively and may appear dimmer than expected
During extremely fast market conditions, lower timeframe data may lag slightly
The indicator provides decision support but is not a complete trading system on its own, so use this indicator as a guide to make decisions, but do not rely solely on it
Cerca negli script per "volume profile"
Elite Pip Academy - Price & Delta Divergence (Delta Pane)🎓 ELITE PIP ACADEMY - DELTA DIVERGENCE DETECTOR
This indicator displays cumulative delta volume in a separate pane and identifies divergences between price action and delta, providing the volume perspective of market divergences.
═══════════════════════════════════════════════════
📱 JOIN OUR FREE COMMUNITY:
🔸 Instagram: @elite_pip_academy
www.instagram.com
→ Trading education & market insights
→ Chart analysis examples
→ Educational content
→ Community highlights
🔸 Telegram Channel: FREE Market Analysis
→ Daily market analysis
→ Trading psychology lessons
→ Strategy discussions
→ Live Q&A sessions
→ Educational materials
👍 LIKE, FOLLOW & SHARE our Instagram to support free education!
═══════════════════════════════════════════════════
📊 WHAT IT DOES:
- Calculates and displays Normalized Cumulative Delta
- Detects divergences between price and volume
- Shows where buying/selling pressure conflicts with price movement
- Displays divergence lines directly on the delta chart
- Provides real-time delta status in information table
═══════════════════════════════════════════════════
📈 UNDERSTANDING CUMULATIVE DELTA:
Cumulative Delta measures the difference between buying and selling volume over time:
- Positive Delta (above zero line) = More buying pressure
- Negative Delta (below zero line) = More selling pressure
- Rising Delta = Increasing buying interest
- Falling Delta = Increasing selling interest
Want to learn more? Join our free Telegram for daily examples!
═══════════════════════════════════════════════════
🔍 DIVERGENCE TYPES:
🟢 BULLISH DIVERGENCE:
- Price: Lower Low ↓
- Delta: Higher Low ↑
- Interpretation: Despite price dropping, buying pressure is increasing
- Signal: Potential upward reversal
🔴 BEARISH DIVERGENCE:
- Price: Higher High ↑
- Delta: Lower High ↓
- Interpretation: Despite price rising, buying pressure is decreasing
- Signal: Potential downward reversal
═══════════════════════════════════════════════════
⚙️ KEY FEATURES:
✓ Real-time cumulative delta calculation
✓ Normalized delta for easier comparison
✓ Smooth delta line (adjustable smoothing period)
✓ Visual divergence lines on delta
✓ Customizable line styles (Solid, Dashed, Dotted)
✓ Adjustable line width (1-10)
✓ Color-coded background (green/red)
✓ Pivot point markers
✓ Information table showing current delta status
✓ Built-in alerts
✓ Elite Pip Academy branding with social media links
✓ Instagram & Telegram promotion in-chart
═══════════════════════════════════════════════════
🎯 HOW TO USE:
1. Add this indicator below your price chart (separate pane)
2. Add the companion "Elite Pip Academy - Price Divergence" to your main chart
3. Keep settings identical on both indicators
4. Watch the delta line for buying/selling pressure
5. Look for divergence lines and labels
6. Use the info table for quick delta status
7. Set up alerts for divergence notifications
8. Follow us on Instagram (@elite_pip_academy) for chart examples!
9. Join our Telegram for free daily market analysis!
═══════════════════════════════════════════════════
⚡ SETTINGS:
📊 Detection Settings:
- Pivot Lookback: Bars for pivot detection (default: 5)
- Delta Smoothing: SMA period for delta (default: 20)
👁️ Display Options:
- Toggle bullish/bearish divergences
- Show/hide labels and lines
📈 Delta Line Style:
- Delta line color customization
🟢 Bullish Divergence Style:
- Color selection
- Line width (1-10)
- Line style (Solid/Dashed/Dotted)
🔴 Bearish Divergence Style:
- Color selection
- Line width (1-10)
- Line style (Solid/Dashed/Dotted)
═══════════════════════════════════════════════════
📊 INFORMATION TABLE:
The top-right table displays:
- 🎓 Elite Pip Academy branding
- Delta Status (Positive/Negative)
- Current Delta Value
- Most Recent Signal (Bull/Bear/None)
- 📱 Instagram handle (@elite_pip_academy)
- 💬 Telegram link (Free Analysis)
═══════════════════════════════════════════════════
💡 TRADING APPLICATIONS:
✓ Identify potential reversals before they happen
✓ Confirm trend strength or weakness
✓ Spot accumulation/distribution phases
✓ Validate breakouts with volume confirmation
✓ Find divergences at key support/resistance
✓ Combine with order flow for institutional analysis
Join our Telegram to see real-world trading examples!
═══════════════════════════════════════════════════
🎓 EDUCATIONAL VALUE:
This tool helps you understand:
- How volume drives price movement
- The relationship between buying pressure and price
- When price and volume are in sync vs. diverging
- Market sentiment shifts before price reversals
- Professional volume analysis techniques
Follow our Instagram for bite-sized educational posts!
═══════════════════════════════════════════════════
📚 RECOMMENDED SETUP:
For complete divergence analysis, use BOTH indicators together:
1. **Elite Pip Academy - Price Divergence**
→ Shows divergence lines on price chart
2. **Elite Pip Academy - Delta Divergence** (this indicator)
→ Shows cumulative delta with divergence lines
This dual setup provides:
- Visual correlation between price and volume
- Immediate identification of divergences
- Complete picture of market dynamics
- Professional-grade analysis
═══════════════════════════════════════════════════
🔧 TECHNICAL NOTES:
- Delta Calculation: Uses tick-level volume approximation
- Best Results: Liquid markets with good volume data
- Timeframes: Works on all, but most effective on intraday charts
- Normalization: Delta is normalized against its SMA for clarity
- Pivot Detection: Uses standard TradingView pivot functions
═══════════════════════════════════════════════════
📱 FREE EDUCATIONAL RESOURCES:
🔸 Instagram (@elite_pip_academy):
✓ Daily trading education
✓ Live chart examples
✓ Strategy breakdowns
✓ Market psychology
✓ Community Q&A
Link: www.instagram.com
🔸 Telegram Channel:
✓ Free daily market analysis
✓ Trading psychology lessons
✓ Real-time chart reviews
✓ Strategy discussions
✓ Educational webinars
✓ Support community
👍 LIKE & SHARE our content to help others learn!
═══════════════════════════════════════════════════
⚠️ CRITICAL DISCLAIMER:
**THIS INDICATOR IS FOR EDUCATIONAL PURPOSES ONLY**
❌ This is NOT:
- Financial advice
- Investment advice
- Trading signals
- A guarantee of profits
- A substitute for professional advice
✅ This IS:
- An educational tool
- A learning resource
- A volume analysis helper
- A divergence detection aid
═══════════════════════════════════════════════════
⚠️ RISK WARNING:
Trading and investing carry substantial risk of loss. You can lose some or all of your capital. Key risks include:
- Market risk
- Volatility risk
- Liquidity risk
- Leverage risk (if using margin)
- Execution risk
- Technology/platform risk
Past performance does not indicate future results. Divergences do not guarantee reversals. Markets can remain irrational longer than you can remain solvent.
═══════════════════════════════════════════════════
📋 BEFORE YOU TRADE:
✓ Understand the indicator completely
✓ Practice on demo accounts extensively
✓ Test on historical data
✓ Develop a complete trading plan
✓ Use proper risk management (stop losses, position sizing)
✓ Never risk more than you can afford to lose
✓ Consult qualified financial advisors
✓ Comply with your local regulations
✓ Keep a trading journal
✓ Continue your education (join our Telegram!)
═══════════════════════════════════════════════════
🎓 ABOUT ELITE PIP ACADEMY:
Elite Pip Academy is committed to providing high-quality educational tools and resources for traders worldwide. Our mission is to help you understand market mechanics, develop analytical skills, and make informed trading decisions.
We believe in:
- Quality education over quick profits
- Understanding over memorization
- Practice over theory alone
- Continuous improvement
- Responsible trading
- Community support
Join our growing community on Instagram and Telegram!
═══════════════════════════════════════════════════
💼 LIABILITY DISCLAIMER:
By using this indicator, you acknowledge that:
- You are using it at your own risk
- Elite Pip Academy is not liable for any losses
- You are solely responsible for your trading decisions
- You have read and understood all disclaimers
- You will not hold the creators liable for any outcomes
- You understand that trading results vary by individual
- You are of legal age to trade in your jurisdiction
- You comply with all applicable laws and regulations
═══════════════════════════════════════════════════
📱 STAY CONNECTED:
Instagram: @elite_pip_academy
🔗 www.instagram.com
Telegram: Elite Pip Academy (Free Channel)
💬 Free market analysis & trading psychology
📧 Support & Feedback: Contact us through Instagram DM
═══════════════════════════════════════════════════
🌟 SUPPORT OUR MISSION:
If you find this tool helpful:
👍 Like our Instagram posts
📤 Share with fellow traders
💬 Join our Telegram community
⭐ Leave a review on TradingView
📸 Tag us in your chart screenshots
Your support helps us create more FREE educational content!
═══════════════════════════════════════════════════
✅ INDICATOR INFORMATION:
- Version: 1.0
- Release Date: February 2026
- Language: Pine Script v5
- Compatibility: All TradingView plans
- Markets: All (stocks, forex, crypto, futures, etc.)
- Timeframes: All (best on intraday)
- Dependencies: None (standalone)
- Updates: Follow Instagram for announcements
═══════════════════════════════════════════════════
🔖 TAGS:
cumulative delta, divergence, volume analysis, delta volume, order flow, price action, volume profile, market structure, educational tool, trading education, technical analysis, volume indicators, reversal detection, buying pressure, selling pressure, elite pip academy, instagram trading, telegram trading, free market analysis, trading community
═══════════════════════════════════════════════════
Thank you for choosing Elite Pip Academy for your trading education!
📱 Follow @elite_pip_academy on Instagram
💬 Join our FREE Telegram for daily analysis
Remember: Knowledge + Practice + Discipline + Community = Success
Happy Learning! 📚📈
Auction Market Theory LevelsAuction Market Theory Indicator
TradingView Pine Script v6 indicator that plots Auction Market Theory (AMT) session levels for RTH/ETH, including value area, VPOC, initial balance extensions, and session VWAP, with Bookmap cloud notes logging.
Features
RTH and ETH session detection with configurable session times.
RTH levels: HOD/LOD, IB30, IB60, IB0.5, IB1.5, IB2.
Value Area (VAH/VAL) and VPOC computed from a session volume profile histogram.
ETH levels: ONH/ONL/ONMID/ONVPOC.
Session VWAP overlay.
Optional labels and/or lines, with ability to extend lines to the right.
Previous session level carry-forward.
Bookmap CSV-style logging and alert payload formatting.
## Inputs
Sessions: `RTH session time`, `ETH session time`.
Levels toggles: `Show HOD and LOD`, `Show IB`, `Show IB30`, `Show IB60`, `Show IB1.5`, `Show IB2`, `Show ONH, ONL, ONVPOC, ONMID`, `Show VAH and VAL`, `Show VPOC`.
Value Area: `Value Area %`, `Number of Histograms`.
Display: `Show price labels`, `Show Lines at price levels`, `Extend lines to the right`, `Session VWAP`, `VWAP color`.
Lookback: `Look back time in hours for previous sessions`.
Logging: `Symbol Prefix` for Bookmap datafeed output.
Getting started
1. Open TradingView and create a new Pine Script.
2. Paste the contents of (src/auction-market-theory.pine).
3. Save and add the indicator to a chart.
Notes
The indicator is designed to run on intraday timeframes with session boundaries.
VPOC/VAH/VAL are calculated from a volume profile histogram built from session bars.
Alerts emit a CSV-style payload containing AMT levels for Bookmap.
Bookmap Cloud Notes output
The script logs and alerts a CSV-style line compatible with Bookmap Cloud Notes. Each line follows this format:
"SYMBOL",PRICE,NOTE,FG_COLOR,BG_COLOR,ALIGN,DIAMETER,LINE
Example (from the script):
"ESH6.CME@BMD",5243.25,ONVPOC,#000000,#ff0066,left,1,TRUE
Alerts → email → local Bookmap Cloud Notes
TradingView alerts can be configured to send these CSV lines to your email address. A simple Python script can then read the email and publish the notes locally to Bookmap Cloud Notes.
Suggested flow:
1. Create a TradingView alert for this indicator.
2. Use the alert message template to output the payload (the script already builds the message in `msg`).
3. Configure the alert to send to your email.
4. Run a local Python reader that parses the incoming email and forwards the CSV lines to your Bookmap Cloud Notes endpoint.
RokTrades Info Table PRORokTrades Info Table PRO
This is my “at-a-glance” market context HUD that lives on your chart. The goal is simple: stop guessing and get a clean read on what the internals + volatility are actually doing while you’re trading.
Instead of bouncing between tickers and dashboards, this table keeps the important stuff in one place:
- Volatility pressure / tailwind (VIX + optional VXN)
- Breadth / participation (NYSE + NASD U/D, ADD, optional TRIN + TICK)
- Put/Call positioning (P/C with a trend filter)
- A fast “what kind of day is this?” read so you’re not forcing trend trades on chop days (or fading a real trend)
It’s built to be fast, readable, and usable intraday — with an Expanded mode (more explanation in the hint column) and a Compact mode (clean, minimal, mobile-friendly). You can also choose your internals timeframe, table position, and text size so it fits your layout.
How I use it (real quick)
I’m basically checking three things:
1) Are internals supporting the move or fighting it?
2) Is the open move legit or likely to trap?
3) Where are the key levels that matter right now?
When the table is screaming “risk-off / weak breadth / VIX rising” while price is pushing higher, that’s usually a “be careful” moment. When everything aligns, I’m way more willing to press trades and hold winners.
What PRO adds vs the LITE version
The LITE version is a solid “quick glance” table — regimes, basic internals, and key level states (above/below).
PRO is the full trading workflow. Here’s what you get in PRO that you don’t get in LITE:
1) VIX-Weighted Internals Scoring (INT SCORE)
PRO builds a real score from:
- VIX regime (VIX vs its EMA)
- VIX momentum + extension
- Breadth signals (U/D, ADD, optional TRIN/TICK)
- Optional Put/Call input (regime or direction)
So you’re not eyeballing 6 signals and trying to “feel” the bias — you get a number and a background color that shows trend/chop/bias instantly.
2) OPEN SCORE + OPEN TYPE (Since Open)
This is huge. PRO tracks the since-open deltas and gives you:
- OPEN SCORE (what internals have done since the open)
- OPEN TYPE (open trend / open chop / open bull / open bear)
This helps you avoid the classic trap where the day turns into something totally different after the first push.
3) Score Alignment (OPEN vs INT)
PRO compares:
- what the open is doing
vs
- what the overall internals bias is doing
If they’re aligned, you can trust continuation more. If they diverge, you should tighten up, expect whips, and demand confirmation.
4) ORB (15m / 30m / 60m) with live state
PRO builds accurate ORB levels using 1-minute data and shows:
- Building progress early (B 7/15 etc.)
- State once complete: ABV / IN / BLW
- ORH/ORL values in the hint column
5) Trap Warning System (Severity + Play Hint)
This is one of my favorite parts:
- It watches for breakouts above ORH / below ORL that are not supported by internals
- Gives a Trap Type (Bull / Bear / Divergence / Chop)
- Gives Severity (LOW / MED / HIGH)
- Optional Play Hint (WAIT / FADE / BUY style guidance)
It’s not “signals.” It’s a warning system to keep you from getting smoked by fake moves.
6) More Key Levels + Better Session Logic
LITE has PMH/PML + PDH/PDL/YClose/Mid (table states).
PRO adds:
- Overnight High / Low (ONH/ONL) based on a real overnight session (16:00–09:30)
- RTH Open (RTHO)
- Prev-day levels with a choice of RTH mode vs Full Day mode
- Better “anchor time” handling so levels are based on the session they belong to
7) Prev-Day Volume Profile (Approx) — YPOC / VAH / VAL
PRO computes an approximate previous day RTH volume profile using 1-minute data and gives you:
- YPOC
- YVAH / YVAL
- Plus a safety flag if it overflows (so you know when to adjust bin size / max bins)
8) Plot Engine (Lines + Labels) — One clean UI for everything
LITE is table-only.
PRO can plot the levels on your chart with a consistent, clean UI:
- Extend right or full chart
- Solid / dashed / dotted
- Width control
- Optional labels with side/size/offset and price included
And it’s all toggle-based so you can keep it clean and only plot what you care about.
9) Extra Day Context: Inside/Outside, Gap %, Range vs ADR%
PRO includes:
- Inside / Outside / Expansion day type
- Gap %
- Range vs ADR%
So you’re not trading blind into a day that’s already exhausted its typical range.
Notes / Tips
- Premarket levels require extended hours candles to be enabled.
- Internals feeds can vary by broker/data package — if something shows NA, it’s usually a data permission issue.
- This tool is designed to be a context + decision support HUD, not a “buy/sell signal generator.”
Crypto MMFCrypto MMF Indicator:
The Crypto Money Flow (MMF) indicator represents an advanced technical analysis tool specifically designed for cryptocurrency markets. This document outlines the logical foundation for its component integration, explains the synergistic mechanisms between its constituent elements, and provides practical implementation guidance without making unrealistic performance claims.
Integration Rationale
Volume-Weighted Momentum Analysis
The primary integration rationale combines price momentum with trading volume—two fundamental market dimensions frequently analyzed in isolation. Traditional momentum oscillators like RSI measure price velocity but ignore transaction volume, potentially misrepresenting conviction behind price movements. By multiplying price changes by corresponding volume, the indicator creates a conviction-weighted momentum measure that distinguishes between high-volume breakouts and low-volume price fluctuations.
The theoretical foundation for this integration stems from market microstructure theory, which posits that volume accompanies informed trading. In cryptocurrency markets—where volatility is pronounced and manipulation attempts occur—volume confirmation provides valuable filtering of meaningful price movements from noise.
Multi-Timeframe Momentum Convergence
The second integration layer incorporates higher timeframe analysis, acknowledging that markets function across temporal hierarchies. While shorter timeframes offer precision for entry and exit timing, longer timeframes establish directional bias and filter out insignificant counter-trend movements. This multi-timeframe approach follows established technical analysis principles that prioritize trend alignment across time horizons.
This integration is particularly relevant for cryptocurrency traders, as these markets exhibit strong momentum characteristics where higher timeframe trends often dominate shorter-term fluctuations. The higher timeframe component serves as both a trend filter and early warning system for momentum divergences.
Component Synergy Mechanism
Core Calculation Components
Price-Volume Integration Engine
The indicator begins by calculating the average of open, high, low, and close prices (OHLC4), providing a balanced price representation less susceptible to intra-period anomalies. This value undergoes differencing to establish direction, then multiplies by volume to create volume-weighted momentum values. This transformation produces two separate data streams: upward volume-weighted momentum and downward volume-weighted momentum.
Exponential Smoothing Application
Both momentum streams undergo exponential smoothing using Wilder's Relative Moving Average methodology. This approach applies greater weight to recent observations while maintaining memory of historical patterns, striking an optimal balance between responsiveness and noise reduction. The smoothed upward and downward momentum values create a ratio representing the relative strength between buying and selling pressure.
Normalization Process
The momentum ratio undergoes mathematical normalization to produce a bounded oscillator ranging from 0 to 100. This normalization enables consistent interpretation across different market conditions, timeframes, and cryptocurrency pairs, establishing standardized overbought and oversold thresholds.
Multi-Timeframe Synchronization System
Hierarchical Timeframe Calculation
The indicator dynamically determines appropriate higher timeframes based on user-defined multipliers and current chart intervals. This automated calculation eliminates manual timeframe selection errors while ensuring logical temporal relationships between analyzed periods.
Cross-Timeframe Data Retrieval
A secure data retrieval mechanism accesses higher timeframe momentum calculations without introducing future bias or repainting. This process maintains data integrity while enabling direct comparison between current and higher timeframe momentum conditions.
Higher Timeframe Smoothing Layer
An additional exponential moving average smooths the higher timeframe data, reducing noise and creating a stable reference signal for divergence analysis. This smoothing parameter is independently adjustable, allowing users to balance sensitivity and stability according to their trading style.
Signal Generation Framework
Threshold-Based Zone Analysis
The indicator establishes three operational zones based on statistical observations of momentum extremes:
Neutral zone (25-75): Represents balanced market conditions
Lower extreme zone (0-25): Indicates potential oversold conditions
Upper extreme zone (75-100): Indicates potential overbought conditions
These threshold levels derive from empirical observations of momentum oscillator behavior in trending and ranging cryptocurrency markets, though optimal values may vary across different market regimes.
Conditional Signal Categorization
The system monitors four distinct momentum conditions:
Initial extreme readings: Momentum enters extreme zones without confirmation
Confirmed extremes: Smoothed momentum follows into extreme zones
Multi-timeframe alignment: Current and higher timeframe momentum move in concert
Multi-timeframe divergence: Current and higher timeframe momentum diverge
Each condition category carries different interpretive implications, with stronger signals emerging when multiple conditions converge.
Practical Implementation Guidelines
Functional Applications
Trend Confirmation Protocol
When price trends directionally with momentum maintaining consistent readings above or below the midpoint (50), and higher timeframe momentum confirms the direction, this suggests sustainable trend conditions. The volume-weighting component further validates whether significant trading activity supports the price movement.
Divergence Detection Methodology
Three divergence types merit monitoring:
Classic divergence: Price reaches new extremes while momentum fails to confirm
Hidden divergence: Price retraces within a trend while momentum suggests trend continuation
Timeframe divergence: Momentum moves opposite directions across timeframes
Divergence analysis proves most reliable when occurring in conjunction with other technical factors such as support/resistance levels or chart patterns.
Zone-Based Risk Assessment
The oscillator's bounded nature facilitates structured risk assessment:
Extreme zone entries: Higher potential reward but require confirmation
Neutral zone movements: Lower signal clarity but potentially favorable risk-reward ratios
Zone transitions: Often precede accelerated price movements
Parameter Configuration Philosophy
Core Parameter Settings
The default parameters balance responsiveness and reliability across diverse cryptocurrency market conditions. The 14-period calculation length aligns with conventional momentum oscillator standards, providing sufficient data for meaningful smoothing while maintaining sensitivity to recent market developments.
Multi-Timeframe Multiplier Selection
The default 3x multiplier creates meaningful temporal separation without introducing excessive lag. This multiplier proves particularly effective for swing trading horizons, though position traders may benefit from larger multipliers while shorter-term traders might reduce this value.
Smoothing Parameter Considerations
Dual smoothing parameters (primary and higher timeframe) allow independent adjustment of sensitivity. More volatile cryptocurrency pairs typically benefit from increased smoothing, while less volatile conditions may permit reduced smoothing for earlier signal generation.
Interpretation Protocol
Step 1: Momentum Context Assessment
Begin analysis by determining the current momentum context:
Absolute level relative to threshold zones
Direction and velocity of recent momentum changes
Relationship to the midpoint (50) level
Step 2: Timeframe Alignment Evaluation
Compare current and higher timeframe momentum:
Confirm directional alignment for trend trading
Identify divergences for potential reversal scenarios
Assess convergence strength for position sizing decisions
Step 3: Volume Confirmation Analysis
Evaluate whether recent volume patterns support momentum readings:
Extreme momentum with declining volume: Caution warranted
Neutral momentum with increasing volume: Potential breakout precursor
Confirmed momentum with expanding volume: Higher conviction signal
Step 4: Market Context Integration
Correlate momentum readings with broader market context:
Correlated cryptocurrency movements
Overall market capitalization trends
Relevant news or fundamental developments
Originality and Differentiation
Innovative Design Elements
Volume-Integrated Momentum Calculation
Unlike conventional momentum oscillators that analyze price in isolation, this indicator integrates volume as a conviction multiplier. This integration follows logical market principles where volume validates price movements, creating a more robust momentum assessment particularly valuable in cryptocurrency markets where volume manipulation attempts occasionally occur.
Dynamic Timeframe Adaptation
The automated timeframe calculation system eliminates manual timeframe selection while ensuring logical temporal relationships. This approach reduces user error and maintains consistency across different charting intervals and trading instruments.
Multi-Layer Confirmation Framework
The indicator employs three analytical layers: raw momentum, smoothed momentum, and higher timeframe momentum. This layered approach provides graduated confirmation levels, allowing traders to distinguish between preliminary signals and confirmed conditions.
Theoretical Foundations
The indicator's design incorporates elements from multiple technical analysis disciplines:
Momentum analysis principles from oscillator theory
Volume-price relationships from market microstructure
Multi-timeframe analysis from hierarchical trend theory
Statistical normalization from quantitative analysis
This interdisciplinary approach creates a comprehensive tool addressing multiple dimensions of market analysis rather than focusing on isolated phenomena.
Risk Management Integration
Signal Quality Assessment
The indicator facilitates signal quality evaluation through multiple confirmation requirements:
Primary momentum extreme reading
Smoothed momentum confirmation
Higher timeframe alignment or constructive divergence
Supporting volume characteristics
Signal strength varies with the number of confirmed elements, enabling proportionate position sizing and risk allocation.
False Signal Mitigation
Several design elements reduce false signal susceptibility:
Volume-weighting filters low-conviction price movements
Exponential smoothing reduces noise-induced fluctuations
Multi-timeframe analysis filters counter-trend movements
Graduated confirmation requirements prevent premature action
These mechanisms collectively improve signal reliability while acknowledging that no technical indicator eliminates false signals entirely.
Implementation Considerations
Cryptocurrency Market Specificity
The indicator incorporates design elements particularly relevant to cryptocurrency markets:
24/7 market operation accommodation
High volatility regime compatibility
Volume data availability considerations
Cross-market correlation awareness
These adaptations enhance effectiveness in cryptocurrency trading environments while maintaining applicability to traditional financial markets.
Customization Guidelines
Users may adjust parameters based on:
Trading timeframe (scalping, day trading, swing trading)
Cryptocurrency pair characteristics (volatility, volume profile)
Risk tolerance and trading style
Market regime (trending, ranging, transitional)
Empirical testing across different parameter sets and market conditions provides the most reliable customization guidance.
Conclusion
The Crypto MMF indicator represents a logically integrated analytical tool combining volume-weighted momentum analysis with multi-timeframe perspective. Its component synergy creates a comprehensive market assessment framework while maintaining practical implementation feasibility. Users should integrate this tool within broader trading methodologies, combining its signals with additional technical, fundamental, and risk management considerations.
The indicator's value derives from its structured approach to market analysis rather than predictive capabilities. By providing organized information about momentum, volume relationships, and timeframe interactions, it supports informed trading decisions within appropriate risk parameters.
Market State Engine V2# Market State Engine
**Deterministic Confidence-Scoring System for TradingView**
A professional-grade PineScript v5 indicator that scores market conditions from 0-100, helping traders identify high-quality trading opportunities through systematic structure analysis, VWAP positioning, order flow dynamics, and time-based context.
---
## 🎯 Overview
The **Market State Engine** is not a trading bot—it's a **noise-reduction and opportunity-ranking system** designed to filter market conditions and surface only the highest-quality setups.
Instead of blindly taking every signal, this indicator:
- ✅ **Scores** market conditions objectively (0-100 scale)
- ✅ **Filters** out low-probability setups automatically
- ✅ **Classifies** opportunities into A, A+, and A++ grades
- ✅ **Alerts** only on confirmed structure shifts with supporting context
- ✅ **Keeps the human in control** - provides intelligence, not automation
### Philosophy: Reduce Noise. Enforce Discipline. Surface Quality.
---
## 🚀 Key Features
- **Deterministic Scoring** - No black boxes, fully explainable logic
- **Multi-Factor Analysis** - Combines 4 independent market state components
- **Structure-First Approach** - Only alerts on confirmed pivot breaks
- **VWAP Mean Reversion Logic** - Directional filtering based on VWAP zones
- **Order Flow Proxy** - CVD divergence and confirmation detection
- **Session-Aware Scoring** - Prioritizes high-volume New York sessions
- **Alert De-Duplication** - One alert per unique structure shift
- **Zero Repainting** - Uses confirmed pivots only (left=2, right=2)
- **Fully Configurable** - All parameters exposed as inputs
- **Visual Feedback** - VWAP bands, setup labels, and real-time score panel
---
## 📊 Scoring System (0-100)
The Market State Engine evaluates **four independent components**, each contributing up to **25 points** for a maximum total score of **100**.
### 🎯 Component Breakdown
| Component | Max Points | Description |
|-----------|------------|-------------|
| **VWAP Context** | 25 | Measures price deviation from session VWAP |
| **Structure Shift** | 25 | Confirms pivot breakout (HARD GATE) |
| **CVD Alignment** | 25 | Detects order flow divergence/confirmation |
| **Time-of-Day** | 25 | Identifies high-probability trading sessions |
---
### 1️⃣ VWAP Context (Max 25 Points)
**Purpose:** Identifies extreme price deviations from fair value for mean-reversion opportunities.
VWAP (Volume-Weighted Average Price) is calculated session-anchored to New York market time, with standard deviation bands creating zones of opportunity.
#### Band Structure:
- **1st Band**: ±1σ from VWAP (fair value zone)
- **2nd Band**: ±2σ from VWAP (moderate deviation)
- **3rd Band**: ±3σ from VWAP (extreme deviation)
#### Scoring Logic (Exclusive):
```
Price in 3rd VWAP Band (>2σ and ≤3σ) → +25 points
Price in 2nd VWAP Band (>1σ and ≤2σ) → +15 points
Otherwise (inside 1σ or beyond 3σ) → 0 points
```
**Key Insight:** The further price stretches from VWAP, the higher the probability of mean reversion.
---
### 2️⃣ Structure Shift (Max 25 Points) — **HARD GATE**
**Purpose:** Confirms momentum shift through confirmed pivot breakouts.
⚠️ **CRITICAL:** Structure shift is **mandatory**. If no valid structure shift occurs, the **total score becomes 0** regardless of other factors.
#### Detection Method:
Uses TradingView's `ta.pivothigh()` and `ta.pivotlow()` functions with **locked parameters**:
- **Left bars**: 2
- **Right bars**: 2
- **Source**: Configurable (Wick or Body)
- **Break confirmation**: Candle close only
#### Bullish Structure Shift:
- ✅ Prior swing high exists (confirmed pivot)
- ✅ Current candle **closes above** swing high + tick buffer
- ✅ Must occur in VWAP 2nd or 3rd band
- ✅ **VWAP Filter**: Price must be **at or below VWAP** (lower bands)
#### Bearish Structure Shift:
- ✅ Prior swing low exists (confirmed pivot)
- ✅ Current candle **closes below** swing low - tick buffer
- ✅ Must occur in VWAP 2nd or 3rd band
- ✅ **VWAP Filter**: Price must be **at or above VWAP** (upper bands)
#### Scoring:
```
Valid structure shift → +25 points
No structure shift → Total score = 0
```
**Tick Buffer:** Default 5 ticks (configurable) - prevents false breaks from minor price noise.
---
### 3️⃣ CVD Alignment (Max 25 Points)
**Purpose:** Detects institutional order flow through volume delta analysis.
CVD (Cumulative Volume Delta) is a proxy for order flow:
```
Close > Open → +Volume (buying pressure)
Close < Open → -Volume (selling pressure)
```
#### Scoring Logic:
| Condition | Points | Description |
|-----------|--------|-------------|
| **Divergence** | +25 | Price makes higher high + CVD makes lower high (bearish)Price makes lower low + CVD makes higher low (bullish) |
| **Confirmation** | +20 | Price and CVD both make higher highs or lower lows |
| **Neutral** | 0 | No clear divergence or confirmation |
**Lookback Window:** Last 20 bars (configurable) - prevents stale divergences.
**Key Insight:** Divergences suggest weakening momentum, while confirmations validate the trend.
---
### 4️⃣ Time-of-Day Context (Max 25 Points)
**Purpose:** Prioritizes high-volume, high-volatility New York sessions.
#### Scored Sessions (America/New_York timezone):
| Session | Time Range (NY) | Points | Description |
|---------|-----------------|--------|-------------|
| **Pre-Market** | 03:00 - 04:00 | +25 | Early liquidity injection |
| **Market Open** | 09:30 - 11:30 | +25 | Highest volume period |
| **Off-Hours** | All other times | 0 | Lower probability setups |
**Key Insight:** Structure shifts during active sessions have higher follow-through probability.
---
## 🏆 Setup Classification
Setups are graded based on total score thresholds (configurable):
| Grade | Score Range | Typical Components | Quality Level |
|-------|-------------|-------------------|---------------|
| **A++ Setup** | ≥90 | All 4 factors aligned(VWAP 3rd band + Structure + CVD + Session) | Premium - Rare |
| **A+ Setup** | ≥75 | Structure + VWAP + CVD or Session(3 of 4 factors) | High - Select |
| **A Setup** | ≥60 | Structure + VWAP + Session(Minimum viable setup) | Good - Regular |
| **No Grade** | <60 | Insufficient confluence | Filtered out |
**Default Thresholds:**
- A Setup: 60 points
- A+ Setup: 75 points
- A++ Setup: 90 points
---
## 📥 Installation
### Step 1: Download the Indicator
Download the `market_state_engine.pine` file from this repository.
### Step 2: Add to TradingView
1. Open (www.tradingview.com)
2. Open the **Pine Editor** (bottom panel)
3. Click **"New"** → **"Blank indicator"**
4. Delete all default code
5. Paste the contents of `market_state_engine.pine`
6. Click **"Add to Chart"**
### Step 3: Configure for Your Symbol
1. Click the **gear icon** next to the indicator name
2. Adjust **Tick Size** for your instrument:
- ES futures: `0.25`
- NQ futures: `0.25`
- Stocks: `0.01`
3. Save settings
---
## ⚙️ Configuration
### Symbol Settings
| Parameter | Default | Description |
|-----------|---------|-------------|
| **Tick Size** | 0.25 | Minimum price movement for your symbol |
| **Tick Buffer Count** | 5 | Ticks beyond swing for valid break |
### VWAP Settings
| Parameter | Default | Description |
|-----------|---------|-------------|
| **VWAP Band 1 (σ)** | 1.0 | 1st standard deviation multiplier |
| **VWAP Band 2 (σ)** | 2.0 | 2nd standard deviation multiplier |
| **VWAP Band 3 (σ)** | 3.0 | 3rd standard deviation multiplier |
### Session Settings
| Parameter | Default | Description |
|-----------|---------|-------------|
| **Session 1** | 0300-0400 | Pre-market window (NY time) |
| **Session 2** | 0930-1130 | Market open window (NY time) |
### Score Thresholds
| Parameter | Default | Description |
|-----------|---------|-------------|
| **A Setup Threshold** | 60 | Minimum score for A grade |
| **A+ Setup Threshold** | 75 | Minimum score for A+ grade |
| **A++ Setup Threshold** | 90 | Minimum score for A++ grade |
### CVD Settings
| Parameter | Default | Description |
|-----------|---------|-------------|
| **CVD Divergence Lookback** | 20 | Maximum bars for divergence detection |
### Swing Settings
| Parameter | Default | Options | Description |
|-----------|---------|---------|-------------|
| **Swing Detection Method** | Wick | Wick / Body | Use high/low or open/close for pivots |
### Visual Settings
| Parameter | Default | Description |
|-----------|---------|-------------|
| **Show VWAP Bands** | ✅ | Display VWAP and standard deviation bands |
| **Show Setup Labels** | ✅ | Display setup markers on chart |
| **Show Score Panel** | ✅ | Display real-time score breakdown |
---
## 📖 How to Use
### Step 1: Apply to 1-Minute Chart
⚠️ **The indicator is locked to 1-minute timeframe** - do not use on other timeframes.
### Step 2: Understand the Visual Signals
#### Setup Labels
- **Green Triangle (▲)** - Bullish (Long) setup detected
- **Red Triangle (▼)** - Bearish (Short) setup detected
- Label shows **Grade** (A/A+/A++) and **Total Score**
#### VWAP Bands
- **Yellow Line** - Session VWAP (fair value)
- **Blue Bands** - ±1σ (fair value zone)
- **Purple Bands** - ±2σ (moderate deviation)
- **Red Bands** - ±3σ (extreme deviation)
#### Score Panel (Top Right)
Real-time breakdown of all four components:
```
Component Score
VWAP Zone 15/25
Structure 25/25
CVD 20/25
Session 25/25
TOTAL 85/100 (A+)
```
### Step 3: Interpret Signals
#### Valid Long Setup:
✅ Green triangle below candle
✅ Price in **lower VWAP bands** (below VWAP)
✅ Structure shift breaks swing high
✅ Score ≥60
#### Valid Short Setup:
✅ Red triangle above candle
✅ Price in **upper VWAP bands** (above VWAP)
✅ Structure shift breaks swing low
✅ Score ≥60
### Step 4: Set Up Alerts (See Alert Conditions section)
---
## 🚦 Signal Filters (VWAP Zone Logic)
The indicator uses **directional VWAP filtering** to prevent counter-trend signals:
### Long Signals (Green)
**Only allowed when price is AT or BELOW VWAP**
- ✅ Lower 2nd band (-2σ to -1σ)
- ✅ Lower 3rd band (-3σ to -2σ)
- ✅ At VWAP exactly
- ❌ **BLOCKED** in upper bands (above VWAP)
**Logic:** Longs when price is stretched below fair value (mean reversion)
### Short Signals (Red)
**Only allowed when price is AT or ABOVE VWAP**
- ✅ Upper 2nd band (+1σ to +2σ)
- ✅ Upper 3rd band (+2σ to +3σ)
- ✅ At VWAP exactly
- ❌ **BLOCKED** in lower bands (below VWAP)
**Logic:** Shorts when price is stretched above fair value (mean reversion)
---
## 🎨 Visual Elements
### Chart Overlays
| Element | Color | Description |
|---------|-------|-------------|
| **VWAP Line** | Yellow | Session-anchored fair value |
| **±1σ Bands** | Blue | Fair value zone (no score) |
| **±2σ Bands** | Purple | Moderate deviation (15 pts) |
| **±3σ Bands** | Red | Extreme deviation (25 pts) |
| **Swing Highs** | Red ▼ | Confirmed pivot highs |
| **Swing Lows** | Green ▲ | Confirmed pivot lows |
| **Session Background** | Light Green | Active high-value session |
### Setup Labels
**Bullish Setup:**
```
A+
▲ 75
```
Green label below candle, shows grade and score
**Bearish Setup:**
```
A++
▼ 90
```
Red label above candle, shows grade and score
### Score Panel
Real-time table in top-right corner:
- Individual component scores (0-25 each)
- Total score (0-100)
- Current setup grade (A/A+/A++)
- Updates in real-time as market conditions change
---
## 🔔 Alert Conditions
### Setting Up Alerts
#### Method 1: Built-in Alert Conditions
1. Click **"Create Alert"** in TradingView
2. Select **Market State Engine** as condition
3. Choose alert type:
- **Bullish Setup** - Long signals only
- **Bearish Setup** - Short signals only
- **Any Setup** - All signals
4. Set to **"Once Per Bar Close"**
5. Configure notification method (app, email, webhook)
#### Method 2: Custom Alert Message
Alert messages include full breakdown:
```
A+ Setup Detected (Score: 85)
Components: VWAP(25) + Structure(25) + CVD(20) + Time(15)
CVD State: Confirmation
Direction: Long
Timeframe: 1m
```
### Alert Behavior
✅ **One alert per unique pivot break** - no spam
✅ **Fires on candle close only** - no repainting
✅ **Minimum score filter** - only A grade or higher (≥60)
✅ **Direction-specific** - separate bullish/bearish conditions
⚠️ **No cooldown between different pivots** - multiple alerts per session allowed if different swing levels break
---
## 🔧 Technical Details
### Timeframe Lock
- **Required**: 1-minute chart only
- **Reason**: Scoring model calibrated for 1m micro-structure
- **Future**: Multi-timeframe support planned for v2
### Timezone Configuration
- **Hard-coded**: `America/New_York`
- **Session Detection**: Uses TradingView's native session functions
- **Consistency**: All time-based logic uses NY timezone
### Swing Detection Parameters
**Locked to specification:**
- `ta.pivothigh(source, left=2, right=2)`
- `ta.pivotlow(source, left=2, right=2)`
**Implications:**
- Pivots confirmed 2 bars after formation
- No repainting - historical pivots don't move
- 4-bar minimum swing structure (2 left + pivot + 2 right)
### VWAP Calculation
- **Type**: Session-anchored (resets daily)
- **Source**: Typical price `(high + low + close) / 3`
- **Weighting**: Volume-weighted
- **Standard Deviation**: True population standard deviation
### CVD Proxy Formula
```pine
barDelta = close > open ? volume : close < open ? -volume : 0
CVD = cumulative sum of barDelta (session-reset)
```
### Performance Limits
- **Max Labels**: 500 (TradingView limit)
- **Max Bars Back**: 500
- **Memory**: Lightweight - uses only essential variables
---
## 💡 Best Practices
### 1. **Use as a Filter, Not a Strategy**
❌ Don't: Blindly take every signal
✅ Do: Use score as confluence for your existing analysis
### 2. **Higher Grades = Better Probability**
- **A Setups (60-74)**: Regular opportunities, still require discretion
- **A+ Setups (75-89)**: High-quality, multiple factors aligned
- **A++ Setups (90-100)**: Rare premium opportunities, strongest edge
### 3. **Respect the VWAP Zone Filter**
The indicator **automatically blocks**:
- Longs in upper VWAP bands (counter-trend)
- Shorts in lower VWAP bands (counter-trend)
Trust this logic - it enforces mean reversion discipline.
### 4. **Monitor the Score Panel**
Watch which components are scoring to understand **why** a setup formed:
- Missing CVD score? → No order flow confirmation
- Missing Time score? → Outside high-volume sessions
- Low VWAP score? → Weak deviation from fair value
### 5. **Combine with Risk Management**
The indicator provides **opportunity scoring**, not position sizing:
- Use stop losses based on swing structure
- Scale position size with setup grade (larger on A++, smaller on A)
- Set profit targets at VWAP or opposing band
### 6. **Session Awareness**
Prioritize signals during **active sessions**:
- **03:00-04:00 NY**: Pre-market momentum
- **09:30-11:30 NY**: Highest volume, tightest spreads
Off-hours signals (0 time score) are lower probability but still valid if other factors strong.
### 7. **Understand the Hard Gate**
If **no structure shift** occurs:
- Total score = 0
- No alerts fire
- Other components irrelevant
**Why?** Structure shift confirms momentum change - without it, there's no tradable opportunity.
### 8. **Avoid Over-Optimization**
Default settings are well-calibrated:
- Don't chase "perfect" parameters
- Test changes on historical data before live use
- Document any modifications
### 9. **Leverage Alert De-Duplication**
The indicator prevents spam automatically:
- One alert per unique swing break
- New swing levels = new alerts
- No need to manually filter notifications
### 10. **Supplement with Price Action**
Use the indicator alongside:
- Support/resistance levels
- Order flow footprint charts
- Volume profile
- Market internals (breadth, TICK, etc.)
---
## 📚 Example Scenarios
### Example 1: A++ Premium Setup (Score: 95)
```
Price: In lower 3rd VWAP band (-2.8σ) → VWAP: 25 pts
Structure: Close breaks swing high → Structure: 25 pts
CVD: Price LL + CVD HL (bullish div) → CVD: 25 pts
Time: 10:15 AM NY (market open) → Time: 25 pts
Direction: LONG (price below VWAP) → Valid
Grade: A++ (95/100)
```
**Interpretation:** All factors aligned - premium mean-reversion long opportunity.
---
### Example 2: A+ Strong Setup (Score: 80)
```
Price: In upper 2nd VWAP band (+1.5σ) → VWAP: 15 pts
Structure: Close breaks swing low → Structure: 25 pts
CVD: Price HH + CVD LH (bearish div) → CVD: 25 pts
Time: 2:00 PM NY (off-hours) → Time: 0 pts
Direction: SHORT (price above VWAP) → Valid
Grade: A+ (65/100)
```
**Interpretation:** Strong setup despite off-hours, bearish divergence adds confidence.
---
### Example 3: Filtered Setup (Score: 0)
```
Price: In upper 3rd VWAP band (+2.5σ) → VWAP: 25 pts (if allowed)
Structure: Close breaks swing high → Structure: BLOCKED
CVD: Price HH + CVD HH (confirmation) → CVD: 20 pts (if allowed)
Time: 10:00 AM NY → Time: 25 pts (if allowed)
Direction: LONG (price ABOVE VWAP) → ❌ INVALID ZONE
Grade: None (0/100) - NO ALERT
```
**Interpretation:** VWAP filter blocked long signal in upper band - prevents counter-trend trade.
---
## 🛠️ Troubleshooting
### No Signals Appearing
- ✅ Verify you're on **1-minute chart**
- ✅ Check **Tick Size** matches your symbol
- ✅ Ensure **VWAP Bands** are visible
- ✅ Wait for confirmed pivots (requires at least 5 bars of history)
### Alerts Not Firing
- ✅ Confirm alert is set to **"Once Per Bar Close"**
- ✅ Check score threshold (must be ≥60 by default)
- ✅ Verify VWAP zone filter isn't blocking signals
- ✅ Check that structure shift is actually occurring
### Score Always Zero
- ✅ No structure shift detected (hard gate active)
- ✅ Price may not be in valid VWAP zone (2nd or 3rd band)
- ✅ Insufficient swing history (wait for pivots to form)
### Too Many/Too Few Signals
**Too many signals:**
- Increase **A Setup Threshold** (e.g., 70 instead of 60)
- Increase **Tick Buffer Count** (reduces false breaks)
**Too few signals:**
- Decrease **A Setup Threshold** (e.g., 50 instead of 60)
- Decrease **Tick Buffer Count** (more sensitive to breaks)
---
## 📜 License
This indicator is provided under the **Mozilla Public License 2.0**.
---
## 🤝 Credits
Developed as a professional trading tool for systematic opportunity identification.
**Philosophy:** Reduce noise. Enforce discipline. Keep the human in control.
---
## 📞 Support
For questions, issues, or feature requests, please consult:
1. This README documentation
2. The specification document (`pinescript_market_state_engine_spec.docx`)
3. Inline code comments in `market_state_engine.pine`
---
## 🔄 Version History
**v1.0** (Current)
- Initial release
- 4-component scoring model (VWAP + Structure + CVD + Time)
- VWAP zone directional filtering
- Alert de-duplication
- Configurable inputs
- Real-time score panel
- Session-aware logic
---
## 🎓 Understanding the Numbers
### Quick Reference Card
| Score Range | Grade | Quality | Typical Use |
|-------------|-------|---------|-------------|
| 90-100 | A++ | Premium | Highest conviction trades |
| 75-89 | A+ | High | Strong probability setups |
| 60-74 | A | Good | Acceptable with discretion |
| 0-59 | None | Filtered | Skip or wait for confluence |
### Component Contribution Examples
**Minimum A Setup (60 points):**
- Structure (25) + VWAP 3rd band (25) + Time (25) = 75 ✅
**Typical A+ Setup (75 points):**
- Structure (25) + VWAP 2nd band (15) + CVD confirm (20) + Time (25) = 85 ✅
**Maximum A++ Setup (100 points):**
- Structure (25) + VWAP 3rd band (25) + CVD divergence (25) + Time (25) = 100 ✅
---
## 🎯 Final Reminder
**This is NOT a trading bot.**
**This is NOT financial advice.**
**This is a decision-support tool.**
Always:
- ✅ Use proper risk management
- ✅ Understand the logic before trading
- ✅ Backtest on your symbols
- ✅ Keep the human in control
**Happy Trading! 📈**
TRIZONACCI_Mean reversal_signalsMarket State Engine
Deterministic Confidence-Scoring System for TradingView
A professional-grade PineScript v5 indicator that scores market conditions from 0-100, helping traders identify high-quality trading opportunities through systematic structure analysis, VWAP positioning, order flow dynamics, and time-based context.
🎯 Overview
The Market State Engine is not a trading bot—it's a noise-reduction and opportunity-ranking system designed to filter market conditions and surface only the highest-quality setups.
Instead of blindly taking every signal, this indicator:
✅ Scores market conditions objectively (0-100 scale)
✅ Filters out low-probability setups automatically
✅ Classifies opportunities into A, A+, and A++ grades
✅ Alerts only on confirmed structure shifts with supporting context
✅ Keeps the human in control - provides intelligence, not automation
Philosophy: Reduce Noise. Enforce Discipline. Surface Quality.
🚀 Key Features
Deterministic Scoring - No black boxes, fully explainable logic
Multi-Factor Analysis - Combines 4 independent market state components
Structure-First Approach - Only alerts on confirmed pivot breaks
VWAP Mean Reversion Logic - Directional filtering based on VWAP zones
Order Flow Proxy - CVD divergence and confirmation detection
Session-Aware Scoring - Prioritizes high-volume New York sessions
Alert De-Duplication - One alert per unique structure shift
Zero Repainting - Uses confirmed pivots only (left=2, right=2)
Fully Configurable - All parameters exposed as inputs
Visual Feedback - VWAP bands, setup labels, and real-time score panel
📊 Scoring System (0-100)
The Market State Engine evaluates four independent components, each contributing up to 25 points for a maximum total score of 100.
🎯 Component Breakdown
Component Max Points Description
VWAP Context 25 Measures price deviation from session VWAP
Structure Shift 25 Confirms pivot breakout (HARD GATE)
CVD Alignment 25 Detects order flow divergence/confirmation
Time-of-Day 25 Identifies high-probability trading sessions
1️⃣ VWAP Context (Max 25 Points)
Purpose: Identifies extreme price deviations from fair value for mean-reversion opportunities.
VWAP (Volume-Weighted Average Price) is calculated session-anchored to New York market time, with standard deviation bands creating zones of opportunity.
Band Structure:
1st Band: ±1σ from VWAP (fair value zone)
2nd Band: ±2σ from VWAP (moderate deviation)
3rd Band: ±3σ from VWAP (extreme deviation)
Scoring Logic (Exclusive):
Price in 3rd VWAP Band (>2σ and ≤3σ) → +25 points
Price in 2nd VWAP Band (>1σ and ≤2σ) → +15 points
Otherwise (inside 1σ or beyond 3σ) → 0 points
Key Insight: The further price stretches from VWAP, the higher the probability of mean reversion.
2️⃣ Structure Shift (Max 25 Points) — HARD GATE
Purpose: Confirms momentum shift through confirmed pivot breakouts.
⚠️ CRITICAL: Structure shift is mandatory. If no valid structure shift occurs, the total score becomes 0 regardless of other factors.
Detection Method:
Uses TradingView's ta.pivothigh() and ta.pivotlow() functions with locked parameters:
Left bars: 2
Right bars: 2
Source: Configurable (Wick or Body)
Break confirmation: Candle close only
Bullish Structure Shift:
✅ Prior swing high exists (confirmed pivot)
✅ Current candle closes above swing high + tick buffer
✅ Must occur in VWAP 2nd or 3rd band
✅ VWAP Filter: Price must be at or below VWAP (lower bands)
Bearish Structure Shift:
✅ Prior swing low exists (confirmed pivot)
✅ Current candle closes below swing low - tick buffer
✅ Must occur in VWAP 2nd or 3rd band
✅ VWAP Filter: Price must be at or above VWAP (upper bands)
Scoring:
Valid structure shift → +25 points
No structure shift → Total score = 0
Tick Buffer: Default 5 ticks (configurable) - prevents false breaks from minor price noise.
3️⃣ CVD Alignment (Max 25 Points)
Purpose: Detects institutional order flow through volume delta analysis.
CVD (Cumulative Volume Delta) is a proxy for order flow:
Close > Open → +Volume (buying pressure)
Close < Open → -Volume (selling pressure)
Scoring Logic:
Condition Points Description
Divergence +25 Price makes higher high + CVD makes lower high (bearish)
Price makes lower low + CVD makes higher low (bullish)
Confirmation +20 Price and CVD both make higher highs or lower lows
Neutral 0 No clear divergence or confirmation
Lookback Window: Last 20 bars (configurable) - prevents stale divergences.
Key Insight: Divergences suggest weakening momentum, while confirmations validate the trend.
4️⃣ Time-of-Day Context (Max 25 Points)
Purpose: Prioritizes high-volume, high-volatility New York sessions.
Scored Sessions (America/New_York timezone):
Session Time Range (NY) Points Description
Pre-Market 03:00 - 04:00 +25 Early liquidity injection
Market Open 09:30 - 11:30 +25 Highest volume period
Off-Hours All other times 0 Lower probability setups
Key Insight: Structure shifts during active sessions have higher follow-through probability.
🏆 Setup Classification
Setups are graded based on total score thresholds (configurable):
Grade Score Range Typical Components Quality Level
A++ Setup ≥90 All 4 factors aligned
(VWAP 3rd band + Structure + CVD + Session) Premium - Rare
A+ Setup ≥75 Structure + VWAP + CVD or Session
(3 of 4 factors) High - Select
A Setup ≥60 Structure + VWAP + Session
(Minimum viable setup) Good - Regular
No Grade <60 Insufficient confluence Filtered out
Default Thresholds:
A Setup: 60 points
A+ Setup: 75 points
A++ Setup: 90 points
📥 Installation
Step 1: Download the Indicator
Download the market_state_engine.pine file from this repository.
Step 2: Add to TradingView
Open TradingView
Open the Pine Editor (bottom panel)
Click "New" → "Blank indicator"
Delete all default code
Paste the contents of market_state_engine.pine
Click "Add to Chart"
Step 3: Configure for Your Symbol
Click the gear icon next to the indicator name
Adjust Tick Size for your instrument:
ES futures: 0.25
NQ futures: 0.25
Stocks: 0.01
Save settings
⚙️ Configuration
Symbol Settings
Parameter Default Description
Tick Size 0.25 Minimum price movement for your symbol
Tick Buffer Count 5 Ticks beyond swing for valid break
VWAP Settings
Parameter Default Description
VWAP Band 1 (σ) 1.0 1st standard deviation multiplier
VWAP Band 2 (σ) 2.0 2nd standard deviation multiplier
VWAP Band 3 (σ) 3.0 3rd standard deviation multiplier
Session Settings
Parameter Default Description
Session 1 0300-0400 Pre-market window (NY time)
Session 2 0930-1130 Market open window (NY time)
Score Thresholds
Parameter Default Description
A Setup Threshold 60 Minimum score for A grade
A+ Setup Threshold 75 Minimum score for A+ grade
A++ Setup Threshold 90 Minimum score for A++ grade
CVD Settings
Parameter Default Description
CVD Divergence Lookback 20 Maximum bars for divergence detection
Swing Settings
Parameter Default Options Description
Swing Detection Method Wick Wick / Body Use high/low or open/close for pivots
Visual Settings
Parameter Default Description
Show VWAP Bands ✅ Display VWAP and standard deviation bands
Show Setup Labels ✅ Display setup markers on chart
Show Score Panel ✅ Display real-time score breakdown
📖 How to Use
Step 1: Apply to 1-Minute Chart
⚠️ The indicator is locked to 1-minute timeframe - do not use on other timeframes.
Step 2: Understand the Visual Signals
Setup Labels
Green Triangle (▲) - Bullish (Long) setup detected
Red Triangle (▼) - Bearish (Short) setup detected
Label shows Grade (A/A+/A++) and Total Score
VWAP Bands
Yellow Line - Session VWAP (fair value)
Blue Bands - ±1σ (fair value zone)
Purple Bands - ±2σ (moderate deviation)
Red Bands - ±3σ (extreme deviation)
Score Panel (Top Right)
Real-time breakdown of all four components:
Component Score
VWAP Zone 15/25
Structure 25/25
CVD 20/25
Session 25/25
TOTAL 85/100 (A+)
Step 3: Interpret Signals
Valid Long Setup:
✅ Green triangle below candle
✅ Price in lower VWAP bands (below VWAP)
✅ Structure shift breaks swing high
✅ Score ≥60
Valid Short Setup:
✅ Red triangle above candle
✅ Price in upper VWAP bands (above VWAP)
✅ Structure shift breaks swing low
✅ Score ≥60
Step 4: Set Up Alerts (See Alert Conditions section)
🚦 Signal Filters (VWAP Zone Logic)
The indicator uses directional VWAP filtering to prevent counter-trend signals:
Long Signals (Green)
Only allowed when price is AT or BELOW VWAP
✅ Lower 2nd band (-2σ to -1σ)
✅ Lower 3rd band (-3σ to -2σ)
✅ At VWAP exactly
❌ BLOCKED in upper bands (above VWAP)
Logic: Longs when price is stretched below fair value (mean reversion)
Short Signals (Red)
Only allowed when price is AT or ABOVE VWAP
✅ Upper 2nd band (+1σ to +2σ)
✅ Upper 3rd band (+2σ to +3σ)
✅ At VWAP exactly
❌ BLOCKED in lower bands (below VWAP)
Logic: Shorts when price is stretched above fair value (mean reversion)
🎨 Visual Elements
Chart Overlays
Element Color Description
VWAP Line Yellow Session-anchored fair value
±1σ Bands Blue Fair value zone (no score)
±2σ Bands Purple Moderate deviation (15 pts)
±3σ Bands Red Extreme deviation (25 pts)
Swing Highs Red ▼ Confirmed pivot highs
Swing Lows Green ▲ Confirmed pivot lows
Session Background Light Green Active high-value session
Setup Labels
Bullish Setup:
A+
▲ 75
Green label below candle, shows grade and score
Bearish Setup:
A++
▼ 90
Red label above candle, shows grade and score
Score Panel
Real-time table in top-right corner:
Individual component scores (0-25 each)
Total score (0-100)
Current setup grade (A/A+/A++)
Updates in real-time as market conditions change
🔔 Alert Conditions
Setting Up Alerts
Method 1: Built-in Alert Conditions
Click "Create Alert" in TradingView
Select Market State Engine as condition
Choose alert type:
Bullish Setup - Long signals only
Bearish Setup - Short signals only
Any Setup - All signals
Set to "Once Per Bar Close"
Configure notification method (app, email, webhook)
Method 2: Custom Alert Message
Alert messages include full breakdown:
A+ Setup Detected (Score: 85)
Components: VWAP(25) + Structure(25) + CVD(20) + Time(15)
CVD State: Confirmation
Direction: Long
Timeframe: 1m
Alert Behavior
✅ One alert per unique pivot break - no spam
✅ Fires on candle close only - no repainting
✅ Minimum score filter - only A grade or higher (≥60)
✅ Direction-specific - separate bullish/bearish conditions
⚠️ No cooldown between different pivots - multiple alerts per session allowed if different swing levels break
🔧 Technical Details
Timeframe Lock
Required: 1-minute chart only
Reason: Scoring model calibrated for 1m micro-structure
Future: Multi-timeframe support planned for v2
Timezone Configuration
Hard-coded: America/New_York
Session Detection: Uses TradingView's native session functions
Consistency: All time-based logic uses NY timezone
Swing Detection Parameters
Locked to specification:
ta.pivothigh(source, left=2, right=2)
ta.pivotlow(source, left=2, right=2)
Implications:
Pivots confirmed 2 bars after formation
No repainting - historical pivots don't move
4-bar minimum swing structure (2 left + pivot + 2 right)
VWAP Calculation
Type: Session-anchored (resets daily)
Source: Typical price (high + low + close) / 3
Weighting: Volume-weighted
Standard Deviation: True population standard deviation
CVD Proxy Formula
barDelta = close > open ? volume : close < open ? -volume : 0
CVD = cumulative sum of barDelta (session-reset)
Performance Limits
Max Labels: 500 (TradingView limit)
Max Bars Back: 500
Memory: Lightweight - uses only essential variables
💡 Best Practices
1. Use as a Filter, Not a Strategy
❌ Don't: Blindly take every signal
✅ Do: Use score as confluence for your existing analysis
2. Higher Grades = Better Probability
A Setups (60-74): Regular opportunities, still require discretion
A+ Setups (75-89): High-quality, multiple factors aligned
A++ Setups (90-100): Rare premium opportunities, strongest edge
3. Respect the VWAP Zone Filter
The indicator automatically blocks:
Longs in upper VWAP bands (counter-trend)
Shorts in lower VWAP bands (counter-trend)
Trust this logic - it enforces mean reversion discipline.
4. Monitor the Score Panel
Watch which components are scoring to understand why a setup formed:
Missing CVD score? → No order flow confirmation
Missing Time score? → Outside high-volume sessions
Low VWAP score? → Weak deviation from fair value
5. Combine with Risk Management
The indicator provides opportunity scoring, not position sizing:
Use stop losses based on swing structure
Scale position size with setup grade (larger on A++, smaller on A)
Set profit targets at VWAP or opposing band
6. Session Awareness
Prioritize signals during active sessions:
03:00-04:00 NY: Pre-market momentum
09:30-11:30 NY: Highest volume, tightest spreads
Off-hours signals (0 time score) are lower probability but still valid if other factors strong.
7. Understand the Hard Gate
If no structure shift occurs:
Total score = 0
No alerts fire
Other components irrelevant
Why? Structure shift confirms momentum change - without it, there's no tradable opportunity.
8. Avoid Over-Optimization
Default settings are well-calibrated:
Don't chase "perfect" parameters
Test changes on historical data before live use
Document any modifications
9. Leverage Alert De-Duplication
The indicator prevents spam automatically:
One alert per unique swing break
New swing levels = new alerts
No need to manually filter notifications
10. Supplement with Price Action
Use the indicator alongside:
Support/resistance levels
Order flow footprint charts
Volume profile
Market internals (breadth, TICK, etc.)
📚 Example Scenarios
Example 1: A++ Premium Setup (Score: 95)
Price: In lower 3rd VWAP band (-2.8σ) → VWAP: 25 pts
Structure: Close breaks swing high → Structure: 25 pts
CVD: Price LL + CVD HL (bullish div) → CVD: 25 pts
Time: 10:15 AM NY (market open) → Time: 25 pts
Direction: LONG (price below VWAP) → Valid
Grade: A++ (95/100)
Interpretation: All factors aligned - premium mean-reversion long opportunity.
Example 2: A+ Strong Setup (Score: 80)
Price: In upper 2nd VWAP band (+1.5σ) → VWAP: 15 pts
Structure: Close breaks swing low → Structure: 25 pts
CVD: Price HH + CVD LH (bearish div) → CVD: 25 pts
Time: 2:00 PM NY (off-hours) → Time: 0 pts
Direction: SHORT (price above VWAP) → Valid
Grade: A+ (65/100)
Interpretation: Strong setup despite off-hours, bearish divergence adds confidence.
Example 3: Filtered Setup (Score: 0)
Price: In upper 3rd VWAP band (+2.5σ) → VWAP: 25 pts (if allowed)
Structure: Close breaks swing high → Structure: BLOCKED
CVD: Price HH + CVD HH (confirmation) → CVD: 20 pts (if allowed)
Time: 10:00 AM NY → Time: 25 pts (if allowed)
Direction: LONG (price ABOVE VWAP) → ❌ INVALID ZONE
Grade: None (0/100) - NO ALERT
Interpretation: VWAP filter blocked long signal in upper band - prevents counter-trend trade.
🛠️ Troubleshooting
No Signals Appearing
✅ Verify you're on 1-minute chart
✅ Check Tick Size matches your symbol
✅ Ensure VWAP Bands are visible
✅ Wait for confirmed pivots (requires at least 5 bars of history)
Alerts Not Firing
✅ Confirm alert is set to "Once Per Bar Close"
✅ Check score threshold (must be ≥60 by default)
✅ Verify VWAP zone filter isn't blocking signals
✅ Check that structure shift is actually occurring
Score Always Zero
✅ No structure shift detected (hard gate active)
✅ Price may not be in valid VWAP zone (2nd or 3rd band)
✅ Insufficient swing history (wait for pivots to form)
Too Many/Too Few Signals
Too many signals:
Increase A Setup Threshold (e.g., 70 instead of 60)
Increase Tick Buffer Count (reduces false breaks)
Too few signals:
Decrease A Setup Threshold (e.g., 50 instead of 60)
Decrease Tick Buffer Count (more sensitive to breaks)
📜 License
This indicator is provided under the Mozilla Public License 2.0.
🤝 Credits
Developed as a professional trading tool for systematic opportunity identification.
Philosophy: Reduce noise. Enforce discipline. Keep the human in control.
📞 Support
For questions, issues, or feature requests, please consult:
This README documentation
The specification document (pinescript_market_state_engine_spec.docx)
Inline code comments in market_state_engine.pine
🔄 Version History
v1.0 (Current)
Initial release
4-component scoring model (VWAP + Structure + CVD + Time)
VWAP zone directional filtering
Alert de-duplication
Configurable inputs
Real-time score panel
Session-aware logic
🎓 Understanding the Numbers
Quick Reference Card
Score Range Grade Quality Typical Use
90-100 A++ Premium Highest conviction trades
75-89 A+ High Strong probability setups
60-74 A Good Acceptable with discretion
0-59 None Filtered Skip or wait for confluence
Component Contribution Examples
Minimum A Setup (60 points):
Structure (25) + VWAP 3rd band (25) + Time (25) = 75 ✅
Typical A+ Setup (75 points):
Structure (25) + VWAP 2nd band (15) + CVD confirm (20) + Time (25) = 85 ✅
Maximum A++ Setup (100 points):
Structure (25) + VWAP 3rd band (25) + CVD divergence (25) + Time (25) = 100 ✅
🎯 Final Reminder
This is NOT a trading bot.
This is NOT financial advice.
This is a decision-support tool.
Always:
✅ Use proper risk management
✅ Understand the logic before trading
✅ Backtest on your symbols
✅ Keep the human in control
Happy Trading! 📈
Pro Cumulative Volume RSI# Pro Cumulative Volume RSI - Professional Trading Indicator
## 📊 What is it?
The **Pro Cumulative Volume RSI** is an advanced momentum oscillator that analyzes buying and selling pressure through volume distribution. Unlike traditional RSI that only tracks price movements, this indicator separates volume into buying and selling components, providing two distinct RSI calculations that reveal market dynamics from both perspectives.
## 🔍 How Does It Work?
### Volume Distribution Algorithm
The indicator uses a sophisticated volume distribution method:
**Buying Volume (BV)** = Volume × (Close - Low) / (High - Low)
**Selling Volume (SV)** = Volume × (High - Close) / (High - Low)
This formula proportionally allocates volume based on where the candle closes within its range:
- If close is near the high → More buying volume
- If close is near the low → More selling volume
### Dual RSI Calculation
The indicator then calculates **two separate RSI values**:
1. **Green Line (Buying Volume RSI)**: Measures the dominance of buying pressure
2. **Red Line (Selling Volume RSI)**: Measures the dominance of selling pressure
Each RSI follows the traditional 14-period calculation but applies it to the volume pressure differences rather than price changes.
## 🎯 How to Use It
### Signal Interpretation
| Scenario | Meaning | Action |
|----------|---------|--------|
| Green > 70, Red < 30 | Strong buying dominance | Consider buying / Hold long |
| Red > 70, Green < 30 | Strong selling dominance | Consider selling / Avoid longs |
| Green crosses above Red | Momentum shift to buyers | Potential buy signal |
| Red crosses above Green | Momentum shift to sellers | Potential sell signal |
| Both near 50 | Balanced market | Wait for confirmation |
### Key Features
**1. Crossover Signals**
- **BUY signal**: When green line crosses above red line with sufficient momentum
- **SELL signal**: When red line crosses above green line with sufficient momentum
- Triangle markers appear automatically on the chart
**2. Divergence Detection**
- **Bullish Divergence (DIV+)**: Price makes lower lows but indicator makes higher lows → Potential reversal up
- **Bearish Divergence (DIV-)**: Price makes higher highs but indicator makes lower highs → Potential reversal down
- Yellow/orange circles mark divergences automatically
**3. Background Coloring**
- **Green background**: Buying pressure dominates
- **Red background**: Selling pressure dominates
- Intensity shows strength of pressure
**4. Live Status Table**
- Real-time RSI values for both buying and selling
- Current momentum status
- Market pressure assessment
- Last detected signal
### Settings Customization
**Basic Settings:**
- **RSI Period**: Default 14, adjust based on your trading timeframe (shorter = more sensitive)
**Visual Settings:**
- **Histogram Mode**: Toggle between line and histogram display
- **Background Coloring**: Enable/disable pressure-based background
- **Transparency**: Adjust background opacity
**Signal Settings:**
- **Crossover Signals**: Show/hide BUY/SELL markers
- **Divergence Detection**: Enable automatic divergence spotting
- **Sensitivity**: Low/Medium/High - controls how strong momentum must be for signals
**Level Lines:**
- **Overbought/Oversold**: Adjust threshold levels (default 70/30)
## ⚠️ IMPORTANT DISCLAIMER
### This Indicator Should NOT Be Used Alone
**ALWAYS combine this indicator with other forms of analysis:**
✅ **Price Action Analysis**
- Support and resistance levels
- Trend lines and chart patterns
- Candlestick formations
✅ **Other Technical Indicators**
- Moving Averages (trend confirmation)
- MACD (momentum confirmation)
- Volume Profile (context)
- ATR (volatility assessment)
- Bollinger Bands (volatility and extremes)
✅ **Multiple Timeframe Analysis**
- Check higher timeframes for overall trend
- Use lower timeframes for precise entries
- Ensure signals align across timeframes
✅ **Fundamental Analysis**
- News and economic events
- Earnings reports (for stocks)
- Market sentiment
- Macro conditions
✅ **Risk Management**
- **NEVER** risk more than 1-2% per trade
- Always use stop losses
- Calculate position size before entering
- Have a clear exit strategy
### Common Pitfalls to Avoid
❌ **Don't** take every signal blindly
❌ **Don't** ignore the overall market trend
❌ **Don't** trade against strong momentum without confirmation
❌ **Don't** forget about major support/resistance levels
❌ **Don't** over-leverage based on indicator signals
❌ **Don't** ignore fundamental catalysts
### Best Practices
✅ **Wait for confluence**: Multiple indicators agreeing
✅ **Consider market context**: Bull/bear market conditions
✅ **Use appropriate timeframes**: Match your trading style
✅ **Backtest first**: Test on historical data before live trading
✅ **Keep a trading journal**: Track what works and what doesn't
✅ **Respect your risk management rules**: Always
## 📈 Example Trading Scenarios
### Scenario 1: Strong Trend Following
- **Setup**: Green RSI consistently above 50, price in uptrend
- **Confirmation**: Higher timeframe trend is up, price above major MA
- **Entry**: BUY signal on pullback when green crosses red
- **Stop Loss**: Below recent swing low
- **Exit**: When red RSI crosses above green or divergence appears
### Scenario 2: Reversal Trading
- **Setup**: Bullish divergence (DIV+) appears at support level
- **Confirmation**: Price shows bullish candlestick pattern, other oscillators oversold
- **Entry**: After confirmation candle closes
- **Stop Loss**: Below divergence low
- **Exit**: At resistance or when momentum weakens
### Scenario 3: Avoiding False Signals
- **Signal**: BUY signal appears
- **Check**: Price is at strong resistance, higher timeframe shows downtrend
- **Action**: **SKIP the trade** - context overrides signal
- **Result**: Protected capital by avoiding low-probability setup
## 🎓 Educational Use
This indicator is designed to help traders:
- Understand volume-based momentum
- Identify shifts in market pressure
- Learn about divergence patterns
- Practice multi-indicator analysis
**Remember**: No indicator is perfect. Markets are complex and influenced by countless factors. Use this tool as one piece of your trading puzzle, not as a standalone solution.
## 📞 Support & Updates
- Report bugs or suggest features via comments
- Check back for updates and improvements
- Share your successful setups to help the community learn
## ⚖️ Legal Disclaimer
**This indicator is for educational and informational purposes only.**
- Not financial advice
- Past performance does not guarantee future results
- Trading involves substantial risk of loss
- Only trade with money you can afford to lose
- Consult with a licensed financial advisor before making investment decisions
**The creator of this indicator assumes no responsibility for trading losses incurred through its use.**
---
## 🚀 Happy Trading!
Remember: **Patience, discipline, and proper risk management** are more important than any indicator. Trade smart, trade safe!
*If you find this indicator helpful, please leave a comment and share your experience!*
SPX 0DTE Options War Detector v2 (RELAXED)# SPX 0DTE Options War Detector v2
## Real-Time Contract Acceleration Analysis for Same-Day SPX Options Trading
---
## 🎯 WHAT THIS INDICATOR DOES
The SPX 0DTE Options War Detector identifies when SPX option contracts are moving **significantly faster** than the underlying SPX index itself - a critical signal for 0DTE (zero days to expiration) options traders looking for explosive intraday moves.
**Core Concept:**
When a 1 OTM call contract moves +30% while SPX only moves +0.15%, the **acceleration ratio is 200x**. This indicates gamma expansion, dealer hedging, or strong directional conviction - exactly what creates 100%+ option gains in minutes.
**This indicator tracks that acceleration in real-time and alerts you when contracts are exploding.**
---
## 🔥 KEY FEATURES
### 1. **Real-Time Option Contract Tracking**
- Fetches live prices for your specified call and put option contracts
- Calculates % change over customizable lookback period (default: 3 bars)
- Compares contract movement vs. SPX movement every bar
### 2. **Acceleration Ratio Detection**
- **Calculates: Contract % Change ÷ SPX % Change**
- Signals when ratio exceeds threshold (default: 2x)
- Example: Contract up 40% while SPX up 0.20% = 200x acceleration
### 3. **Multi-Timeframe Alignment (Optional)**
- Checks 1-minute, 5-minute, and 15-minute EMA trends
- Confirms all timeframes agree before entry (can be toggled off)
- Reduces fakeouts by requiring conviction across multiple timeframes
### 4. **Smart Entry Signals**
- 🚀 **Green Arrow (CALL)**: Contract accelerating + SPX rising + bullish alignment
- 🔥 **Red Arrow (PUT)**: Contract accelerating + SPX falling + bearish alignment
- Only triggers during active trading hours (10am-3pm EST default)
### 5. **Automatic Exit Management**
- ❌ **Orange X**: Momentum dying (acceleration drops below 1x)
- ⏱️ **Time Exit**: Automatic exit after 30 minutes max hold
- **"In Trade" Tracking**: Dashboard shows current position status
### 6. **Live Dashboard**
- Real-time contract prices
- % change for calls, puts, and SPX
- Acceleration ratios (with color coding)
- Multi-timeframe alignment status (✓|✓|✓)
- Winner indicator (🏆) showing which side has edge
- Volume status (🔥 surge or 😴 quiet)
- Session status (LIVE or CLOSED)
### 7. **Background Regime Detection**
- 🟢 **Green background**: Calls winning (higher acceleration)
- 🔴 **Red background**: Puts winning (higher acceleration)
- ⚪ **Gray background**: Chop zone (no clear edge)
### 8. **Customizable Alerts**
- CALL ENTRY alert with acceleration details
- PUT ENTRY alert with acceleration details
- EXIT alerts when momentum dies
- All alerts include specific metrics (acceleration ratio, % changes)
---
## 📋 HOW TO USE THIS INDICATOR
### **STEP 1: Daily Setup (Most Important!)**
Every morning before market open:
1. **Open SPX Options Chain** on TradingView
2. **Find current SPX price** (e.g., 6965)
3. **Calculate 1 OTM strikes:**
- Call Strike = SPX + 5 points (e.g., 6970)
- Put Strike = SPX - 5 points (e.g., 6960)
4. **Copy exact ticker symbols** from options chain:
- Example Call: `OPRA:SPXW260113C6970`
- Example Put: `OPRA:SPXW260113P6960`
5. **Update indicator settings:**
- Click gear icon
- Paste Call Option Ticker
- Paste Put Option Ticker
- Save
**Ticker Format:**
- `OPRA:SPXW` = Prefix for SPX weekly options
- `260113` = Expiry date (YYMMDD format, Jan 13, 2026)
- `C` or `P` = Call or Put
- `6970` = Strike price
### **STEP 2: Chart Setup**
- **Symbol**: SPX (S&P 500 Index)
- **Timeframe**: 1-minute chart
- **Session**: Regular market hours (9:30am-4pm EST)
- **Indicator Settings**: Default settings work well for most traders
### **STEP 3: During Trading Hours**
**Watch for Entry Signals:**
1. Monitor the dashboard for acceleration building (50x → 150x → 250x)
2. Check that "WINNER" 🏆 appears on one side consistently
3. Verify volume is 🔥 (if volume filter enabled)
4. **Wait for the arrow to print on chart**
- 🚀 Green arrow up = ENTER CALL
- 🔥 Red arrow down = ENTER PUT
5. Check the label for exact metrics (acceleration, % changes)
**Execute Trade:**
- Entry is MANUAL (indicator provides signals, you execute)
- Enter your chosen contract size
- Set stop loss at -50% contract value (or your risk tolerance)
- Target: 50-150% gain (typical for 0DTE accelerations)
**Exit When:**
- ❌ Orange X appears (momentum dying)
- ⏱️ 30 minutes elapsed (time-based exit)
- Dashboard shows "In Trade: NO"
- Target profit hit
- Stop loss hit
### **STEP 4: Settings Customization**
**Default Settings (Recommended for Starting):**
```
Trading Hours: 10am - 3pm EST
Acceleration Threshold: 2.0x
Contract % Threshold: 3.0%
Lookback Bars: 3
Require All Timeframes: FALSE
Require Volume Surge: FALSE
```
**If Getting Too Many Signals (>20/day):**
- Increase Acceleration Threshold to 3.0x or 4.0x
- Increase Contract % Threshold to 5.0%
- Enable "Require All Timeframes" = TRUE
- Enable "Require Volume Surge" = TRUE
**If Getting Too Few Signals (<5/day):**
- Decrease Acceleration Threshold to 1.5x
- Decrease Contract % Threshold to 2.0%
- Keep both filters OFF
---
## ⚙️ INDICATOR SETTINGS EXPLAINED
### **Core Parameters:**
**Trading Start/End Hour**
- Default: 10am - 3pm EST
- Most volatile 0DTE action happens in these hours
- Adjust if you trade different sessions
**Min Acceleration Ratio**
- Default: 2.0x
- How many times faster contract must move vs. SPX
- Higher = fewer but stronger signals
- Lower = more signals, potentially more noise
**Min Contract % Change**
- Default: 3.0%
- Minimum % gain contract must show
- Filters out tiny movements
- Higher = more selective entries
**Lookback Bars**
- Default: 3 bars (3 minutes on 1min chart)
- Period for calculating % changes
- Shorter = more reactive to quick moves
- Longer = smoother but slower signals
**Require All Timeframes Aligned**
- Default: FALSE (only checks 1min EMA)
- When TRUE: Requires 1min, 5min, AND 15min all aligned
- Use TRUE for highest-quality signals (fewer entries)
- Use FALSE for more opportunities
**Require Volume Surge**
- Default: FALSE
- When TRUE: Only signals when volume >1.5x average
- Confirms conviction behind moves
- Can miss quiet but powerful setups if enabled
### **Option Ticker Inputs:**
**Call Option Ticker**
- MUST be updated daily for 0DTE trading
- Format: `OPRA:SPXW `
- Example: `OPRA:SPXW260113C6970`
- Find in TradingView's SPX Options Chain
**Put Option Ticker**
- MUST be updated daily for 0DTE trading
- Format: `OPRA:SPXW `
- Example: `OPRA:SPXW260113P6960`
- Usually 5-10 points below ATM strike
---
## 📊 UNDERSTANDING THE DASHBOARD
### **Dashboard Fields:**
**Price** → Current option contract price
**% Change** → Contract % change over lookback period (green = up, red = down)
**Accel Ratio** → Contract % ÷ SPX % (green if >threshold)
**SPX % Chg** → SPX index % change
**1m|5m|15m** → Timeframe alignment (✓ = aligned, ✗ = not aligned)
**WINNER** → 🏆 appears on side with higher acceleration
**Volume** → 🔥 = surge, 😴 = quiet
**In Trade** → YES = currently tracking a position, NO = flat
**Session** → LIVE = trading hours active, CLOSED = outside hours
### **What to Look For:**
**Strong CALL Setup:**
```
Price: 45.2
% Change: +38% (green)
Accel Ratio: 250x (green - above threshold)
SPX % Chg: +0.15%
1m|5m|15m: ✓|✓|✓ (all aligned)
WINNER: 🏆 (call side)
Volume: 🔥
In Trade: NO (ready for entry)
Session: LIVE
```
→ Wait for 🚀 green arrow, then consider entry
**Strong PUT Setup:**
```
Price: 52.8
% Change: +45% (green)
Accel Ratio: 225x (green)
SPX % Chg: -0.20%
1m|5m|15m: ✓|✓|✓ (all aligned)
WINNER: 🏆 (put side)
Volume: 🔥
In Trade: NO
Session: LIVE
```
→ Wait for 🔥 red arrow, then consider entry
---
## 💡 BEST PRACTICES
### **DO:**
✅ Update option tickers EVERY morning
✅ Wait for the arrow signal (don't trade dashboard alone)
✅ Exit when orange X appears (momentum dying)
✅ Respect the 30-minute max hold time
✅ Only trade during high-volume periods (🔥)
✅ Start with paper trading for 5-10 days
✅ Track your actual results (not just signals)
✅ Use proper position sizing (risk 1-2% of account per trade)
### **DON'T:**
❌ Trade without updating tickers daily
❌ Chase signals after arrow already printed
❌ Hold past exit signals "hoping" for recovery
❌ Trade during lunch hour (low volume)
❌ Take every signal (filter for best setups)
❌ Ignore timeframe alignment when enabled
❌ Trade outside 10am-3pm window (lower liquidity)
❌ Risk more than you can afford to lose
---
## 🎯 TYPICAL USE CASES
### **Case 1: Scalper (Multiple Trades Per Day)**
- Settings: Acceleration 2.0x, All filters OFF
- Expectation: 15-20 signals per day
- Strategy: Take 5-8 best setups (🔥 volume + ✓|✓|✓ alignment)
- Hold Time: 3-10 minutes
- Target: 50-100% per trade
### **Case 2: Selective Trader (Quality Over Quantity)**
- Settings: Acceleration 3.0x, All filters ON
- Expectation: 5-8 signals per day
- Strategy: Take every signal with conviction
- Hold Time: 10-20 minutes
- Target: 100-150% per trade
### **Case 3: Trend Rider (Momentum Continuation)**
- Settings: Acceleration 2.5x, Volume ON, Timeframes OFF
- Expectation: 10-15 signals per day
- Strategy: Take signals that align with market trend
- Hold Time: 15-30 minutes
- Target: 75-125% per trade
---
## ⚠️ IMPORTANT DISCLAIMERS
### **Risk Warning:**
- 0DTE options are EXTREMELY high risk
- You can lose 100% of position in minutes
- Only trade with money you can afford to lose completely
- This indicator does NOT guarantee profits
- Past performance does not indicate future results
### **Not Financial Advice:**
- This is an educational tool for analyzing option acceleration
- Not a recommendation to buy or sell any security
- Consult a licensed financial advisor before trading
- The creator assumes no liability for trading losses
### **Technical Limitations:**
- Requires real-time option data subscription
- Option tickers MUST be updated daily for 0DTE
- Signals are based on historical patterns (not predictive)
- Acceleration can reverse instantly (use stops always)
- Low liquidity contracts may show false signals
### **Market Conditions:**
- Works best in trending markets (strong directional moves)
- Less effective in choppy/range-bound conditions
- High volatility days produce more signals
- Quiet days may produce few or no signals
---
## 🚀 EXPECTED RESULTS
### **Signal Frequency:**
- **Relaxed Settings**: 15-20 signals per day
- **Balanced Settings**: 10-15 signals per day
- **Strict Settings**: 5-8 signals per day
### **Signal Quality:**
- **Not every signal is a trade** (filter for best setups)
- **Trending days = more signals** (this is normal)
- **Chop days = fewer quality signals** (be patient)
- **Exit signals are fast** (3-10 minutes typical for 0DTE)
### **Win Rate Expectations (Realistic):**
- **Beginner**: 40-50% win rate
- **Intermediate**: 50-60% win rate
- **Advanced**: 60-70% win rate
- **Risk/Reward**: Target 1:1 to 1:3 (with discipline)
### **Performance Factors:**
- Your entry timing (taking best vs. all signals)
- Your exit discipline (following stops)
- Market conditions (trending vs. chop)
- Position sizing (proper risk management)
- Experience level (paper trade first!)
---
## 🔧 TROUBLESHOOTING
### **"Dashboard shows NaN"**
→ Option ticker not found or no data
→ Verify ticker format is correct
→ Check strike is not too far OTM (use 1-2 OTM only)
### **"No signals generating"**
→ Check "Session" shows LIVE
→ Lower acceleration threshold (try 1.5x)
→ Disable all filters temporarily
→ Verify option tickers updated for today
### **"Too many signals"**
→ Increase acceleration to 3x or higher
→ Enable "Require All Timeframes" = TRUE
→ Enable "Require Volume Surge" = TRUE
→ Increase contract % to 5-7%
### **"Exit warnings without entries"**
→ Fixed in V2 (only shows when "In Trade: YES")
→ If still appearing, indicator may need refresh
### **"Only CALL or only PUT signals"**
→ This is NORMAL on trending days
→ Market dictates which side has edge
→ System working correctly if directional
---
## 📚 ADDITIONAL RESOURCES
### **Recommended Learning:**
- SPX 0DTE options basics and mechanics
- Gamma risk and dealer hedging concepts
- Option acceleration vs. underlying movement
- Proper position sizing and risk management
- Backtesting vs. forward testing methodology
### **Complementary Tools:**
- Bookmap (order flow analysis)
- Volume profile indicators
- Opening range breakout tools
- Volatility index (VIX) monitoring
### **Community:**
- Share your results and optimizations
- Discuss settings for different market conditions
- Report bugs or suggest improvements
- Help other traders learn the system
---
## 📝 VERSION HISTORY
**v2.0 - Relaxed Entry Conditions**
- Removed new high/low requirement (too strict)
- Made multi-timeframe alignment optional
- Made volume surge optional
- Added "In Trade" tracking to dashboard
- Fixed exit warnings appearing without entries
- Lowered default contract % threshold to 3%
**v1.0 - Initial Release**
- Core acceleration detection logic
- Multi-timeframe EMA alignment
- Dashboard with real-time metrics
- Entry and exit signal system
- Basic alert structure
---
## 🤝 CREDITS & ATTRIBUTION
**Concept:** Contract acceleration detection for 0DTE SPX options
**Methodology:** Real-time comparison of option contract movement vs. underlying index movement
**Target Audience:** Active 0DTE options traders seeking explosive intraday moves
**Development:** Collaborative refinement through live testing and user feedback
**Open Source:** This script is published for the trading community. Feel free to modify and improve, but please credit the original work.
---
## 💬 FINAL NOTES
This indicator was built by traders, for traders who understand that 0DTE options require:
- **Speed** (decisions in seconds)
- **Precision** (knowing when contracts are truly accelerating)
- **Discipline** (following exits without emotion)
- **Risk Management** (proper sizing and stops)
If you use this tool, you accept the risks. If you profit from it, pay it forward by helping others learn.
**Trade smart. Trade small. Trade safe.**
---
## 📞 SUPPORT & FEEDBACK
If this indicator helps you, please:
- ⭐ Leave a review
- 📊 Share your optimization settings
- 🐛 Report any bugs or issues
- 💡 Suggest improvements
**Good luck, and may your acceleration ratios be ever in your favor!**
---
*Disclaimer: This indicator is for educational and informational purposes only. Trading options involves substantial risk of loss. The creator makes no guarantees of profitability and assumes no liability for trading decisions made using this tool.*
Allyhshn - OrderFlowAllyhshn – OrderFlow
Dynamic Order Flow, Volume Delta & Price-Based Flow visualization
Is an advanced order flow and volume-by-price visualization indicator designed to work on any TradingView account, using public volume data and lower-timeframe aggregation to approximate professional order-flow behavior.
The script combines delta analysis, dynamic volume (bubbles), price-region (snapshot ladders), real-time flow tracking, delivering a comprehensive snapshot of buyer and seller activity directly on the chart.
1) Core Concept
The indicator estimates order flow by:
* Aggregating volume from lower timeframes.
* Classifying volume as buying or selling pressure.
* Distributing volume into price bins.
* Rendering this information as visual bubbles, ladder tables, and real-time labels.
This approach allows traders to identify:
* Aggressive buying or selling.
* Absorption and institutional participation.
* Acceptance or rejection of price levels.
* High-interest price zones (POC and volume clusters).
2) Order Flow & Delta Calculation
Delta Estimation
* Delta is calculated as the difference between buying and selling volume.
* On second-based charts, delta is computed directly from candle behavior.
* On higher timeframes, delta is reconstructed from lower timeframes
Wick-Based Classification (Optional)
* When enabled, volume classification uses **wick and candle position** rather than only
open/close.
This improves detection of:
* Absorptions;
* Rejections;
* True control of the candle (buyers vs sellers).
3) Delta Normalization & Thresholds
To maintain consistency across different market regimes:
* Absolute delta is normalized using an EMA-based baseline.
* A configurable threshold factor filters out weak or irrelevant volume.
* Only significant aggressions generate visual signals.
This makes signals comparable across:
* Low-volume sessions.
* High volatility.
* News events.
* Consolidation phases.
4) Dynamic Volume Bubbles (Order Flow Visualization)
Bubble Logic
* Buy and sell aggressions are rendered as bubbles on the chart.
* Bubble size dynamically reflects the relative strength of delta.
* Sizes adapt automatically to market conditions.
Real-Time Behavior:
* During the active candle, bubbles:
* Expand as volume accumulates.
* Update continuously.
* Reflect real-time changes in order flow.
* Buy and sell bubbles are mutually exclusive unless both sides are active.
Historical Bubbles:
* Confirmed candles store bubbles in history.
* The total number of displayed bubbles is limited to avoid clutter.
* Optional **institutional-only mode** displays only extreme or absorbed events.
5) Absorption & Institutional Event Detection
The script can isolate high-impact volume events by:
* Requiring delta to exceed a dynamic threshold;
* Filtering only extreme or abnormal volume behavior;
* Highlighting potential institutional absorption zones.
Bubble sizing becomes more aggressive in this mode, emphasizing:
* Large participants.
* Defended price levels.
* Failed auctions.
6) Vertical & Horizontal Positioning
* Bubble placement is offset vertically using ATR-based padding, ensuring clarity.
* Labels and bubbles never overlap candles.
* Horizontal offsets are configurable for right-side labels.
7) Ladder – Order Flow by Price (Flow Snapshot)
Purpose:
The Ladder provides a price-based snapshot of order flow,
similar to a volume profile combined with delta.
Features:
* Aggregates buy, sell, and total volume by price regions (bins).
* Uses fixed tick-based bins for accurate price granularity.
* Automatically adapts to the visible range or fallback lookback.
Range Modes:
*ATR Mode: Ladder range adapts dynamically to volatility.
*ABS Mode: Ladder uses a fixed price range defined by scale and units.
Display Options
* Price level.
* Bought volume.
* Sold volume.
* Total volume.
* Compact number formatting (K/M).
8) Point of Control (POC)
* The ladder automatically identifies the Point of Control.
* The price region with the highest total volume.
* The POC row can be visually highlighted.
This helps identify:
* Acceptance zones.
* Fair value areas.
* High-interest liquidity levels.
9) Real-Time Overlay on Ladder
* The current candle’s live delta is overlayed on the ladder in real time.
* This ensures the ladder always reflects the most current order flow state.
* Traders can see developing volume before candle close.
10) Right Mini Labels – Last Candle Snapshot
A compact label panel on the right side displays:
* Buyers volume.
* Sellers volume.
* Optional total volume.
These values:
* Update in real time.
* Reset at each new candle.
* Reflect only the current bar’s order flow.
This provides a quick, readable snapshot without scanning the entire ladder.
11) Data Management & Performance
* Uses rolling arrays to maintain performance.
* Automatically removes outdated price bins.
* Prevents memory growth with fixed limits.
* Designed to remain stable even on fast markets and low timeframes.
12) Intended Use Cases
This script is suitable for:
* Scalping and intraday trading.
* Identifying absorption and manipulation.
* Confirming breakouts and failures.
* Reading auction behavior.
* Enhancing entries and exits with order flow context.
13) Account Compatibility
* Does not require proprietary order book or footprint data.
* Works on all TradingView accounts.
* Uses only publicly available volume information.
Auction Context Engine ( Value Area, VWAP & Regime)📌 Indicator Name
Auction Context Engine (Value Area, VWAP & Regime)
Short name: ACE Context
🧠 Description
Auction Context Engine (ACE) is a professional market context and structure indicator based on Auction Market Theory.It is designed to help traders understand where the market is positioned, not to generate trade signals.
ACE focuses on:
• Developing Value Area (VAH / VAL)
• Developing Point of Control (POC)
• Session VWAP positioning
• Volatility regime expansion
• Opening Range context
• Failed auction / trap detection
• Market bias and environment quality
This indicator provides context only and is intended to be used alongside a separate execution strategy or system.
🎯 What This Indicator Is
✔ A context engine
✔ A market structure filter
✔ A bias alignment tool
✔ A regime and environment classifier
❌ What This Indicator Is NOT
✘ Not a signal generator
✘ Not a buy/sell system
✘ Not a strategy
✘ Not a profitability promise
📊 How To Use
Use ACE to answer:
• Is price accepting or rejecting value?
• Is the market in balance or expansion?
• Is VWAP supporting or opposing price?
• Is this a breakout environment or a trap?
• Is volatility expanding?
• Is the market trending or ranging?
You may then use your own execution strategy aligned with this context.
🟢 Core Components
Developing Value Area
• VAH / VAL dynamically update through the session
• POC tracks highest traded volume area
VWAP Position
• Above VWAP = bullish bias
• Below VWAP = bearish bias
Opening Range Context
• Detects breakouts or balance after session open
Volatility Regime
• Identifies expansion vs normal conditions
Failed Auction Detection
• Highlights trap conditions near value extremes
Market Quality
• Strong / Mixed / Weak environment classification
Context Table
• Clean 1-column vertical dashboard with color-coded bias
🔵 Visual Elements
• Developing VAH, VAL, POC lines
• Session VWAP
• Small context dots when environment turns READY
• Compact professional context table
⚙️ Settings
• Value Area bin size
• Value area percentage
• Opening range duration
• Regime expansion factor
• Line colors and thickness
• Context table ON/OFF
• Context dots ON/OFF
🧩 Best Use Case
This indicator is ideal for:
• Intraday trading
• Index futures and equities
• Options context filtering
• Trend / range regime identification
• Professional discretionary traders
⚠️ Disclaimer
This script is provided for educational and informational purposes only.It does not constitute financial or investment advice.Trading involves risk. Always use proper risk management.
CVD Absorption & Distribution Pro v3 (With Logit Regression)CVD Absorption & Distribution Pro v3 - Complete Guide
Introduction and Overview
The CVD Absorption and Distribution Pro v3 is an advanced trading indicator designed for TradingView that reveals hidden market dynamics invisible on standard price charts. This tool analyzes the battle between buyers and sellers at the micro level, identifying when large institutional players are quietly accumulating or distributing positions while price remains deceptively stable.
Traditional volume indicators fail traders because they treat all volume the same way. They cannot distinguish between aggressive buying and aggressive selling. More importantly, they cannot reveal when significant selling pressure is being absorbed by hidden buyers, or when strong buying pressure is being quietly distributed by large sellers. This information asymmetry has historically given institutional traders a massive advantage over retail participants.
This indicator solves that problem by implementing Cumulative Volume Delta analysis combined with machine learning prediction models, hidden liquidity detection, and comprehensive statistical validation. The result is a professional-grade analytical tool that was previously available only on expensive specialized platforms, now accessible to the entire TradingView community.
What is Cumulative Volume Delta
Cumulative Volume Delta, commonly known as CVD, is a method of categorizing trading volume based on whether it represents buying or selling pressure. The concept is straightforward. When price ticks upward from one moment to the next, the volume associated with that price movement is classified as buying volume. When price ticks downward, that volume is classified as selling volume. The difference between total buying volume and total selling volume over a given period is the delta.
A positive delta indicates that buyers were more aggressive during that period. A negative delta indicates sellers were more aggressive. By tracking this delta cumulatively over time, traders can see the underlying pressure that may not be immediately visible in price action alone.
However, raw CVD analysis has limitations. The real trading edge emerges when we compare what the CVD suggested should happen to price versus what actually happened. When there is significant selling pressure but price fails to decline, something interesting is occurring. Someone is absorbing all that selling. This is where the concepts of absorption and distribution become critically important.
Core Functionality Explained
The indicator operates by accessing one-second bar data from TradingView, the finest granularity available on the platform. This micro-level data is then grouped into clusters, which are user-configurable time blocks. The default setting creates clusters of sixty one-second bars, effectively creating one-minute analysis blocks. However, traders can adjust this to create clusters representing anywhere from a few seconds to several minutes depending on their trading style.
For each one-second bar within a cluster, the script must determine whether to classify the volume as buying or selling. This classification happens based on whether price moved up or down compared to the previous bar. But what happens when price does not change at all? The indicator provides three methods to handle this situation.
The first method, called Last Direction, assigns unchanged volume to whichever direction occurred most recently. If the previous tick was an uptick, the unchanged volume is counted as buying. This approach assumes market momentum tends to persist at very short timeframes.
The second method, called Split Fifty-Fifty, divides unchanged volume equally between buying and selling. This conservative approach acknowledges that when price does not move, we genuinely cannot know whether buyers or sellers were responsible.
The third method simply ignores unchanged ticks entirely, excluding them from the CVD calculation. This purist approach ensures only directionally confirmed volume influences the analysis.
Understanding Absorption
Absorption is one of the two primary signals this indicator detects. Absorption occurs when significant selling pressure fails to push price lower. Imagine a scenario where the delta is strongly negative, meaning sellers are aggressively hitting bids and overwhelming buyers. Under normal circumstances, this should drive price down. But if price stays flat or even rises despite this selling pressure, something unusual is happening. A large buyer is absorbing all that selling without allowing price to fall.
This behavior is characteristic of institutional accumulation. Large players who want to build substantial positions cannot simply place massive buy orders because that would move price against them immediately. Instead, they often buy by absorbing selling pressure. They let other participants sell to them at stable prices, quietly accumulating shares without revealing their intentions.
The indicator identifies absorption by first checking whether the CVD magnitude exceeds a calculated threshold based on historical averages. If the CVD is significantly negative and exceeds this threshold, the script then examines what happened to price. If price moved up or stayed flat, this is classified as full absorption. If price moved down but moved less than expected given the selling pressure, this is classified as partial absorption.
The expected price move is calculated based on the relationship between CVD magnitude and typical price movement observed historically. If current CVD is twice the average, the expected price move would be approximately twice the average price move. When actual price movement falls short of this expectation, the shortfall percentage quantifies the absorption.
Understanding Distribution
Distribution is the mirror image of absorption. It occurs when significant buying pressure fails to push price higher. When delta is strongly positive but price stays flat or even declines, someone is distributing shares into that buying pressure. They are selling to eager buyers without allowing price to rise.
This behavior characterizes institutional distribution. Large holders who want to exit substantial positions face the same challenge as accumulators. They cannot simply dump massive sell orders because that would crash the price before they finish selling. Instead, they often sell by distributing into buying pressure, letting other participants buy from them at stable prices while quietly reducing their position.
The indicator identifies distribution using the same logic as absorption but in reverse. Strongly positive CVD that exceeds the threshold combined with flat or declining price signals distribution. Partial distribution is identified when price rises but rises less than the CVD magnitude would suggest.
Hidden Liquidity Detection
Perhaps the most valuable feature of this indicator is its ability to quantify hidden liquidity. Hidden liquidity refers to large orders that are not fully visible in the order book. Institutional traders commonly use iceberg orders, which display only a small portion of the total order size while the rest remains hidden. As the visible portion gets filled, more of the hidden quantity is revealed.
The indicator estimates hidden liquidity by analyzing partial absorption and partial distribution events. When price moves less than expected given the CVD, the difference represents volume that was absorbed by hidden orders. The cumulative hidden buy liquidity and hidden sell liquidity provide insight into institutional activity that remains completely invisible on standard charts.
A high ratio of hidden buy liquidity to hidden sell liquidity suggests institutional accumulation is occurring. Conversely, a high ratio of hidden sell liquidity to hidden buy liquidity suggests institutional distribution. These signals often precede significant price movements as the institutional positioning eventually influences market direction.
The Prediction Model
This indicator goes beyond simple pattern detection by implementing a genuine machine learning model trained on historical data. The model uses logistic regression to predict whether price will move up or down in subsequent clusters based on current market conditions.
The model considers three primary factors. First, it looks at the normalized CVD, which measures current CVD relative to its historical average and variability. Second, it examines net flow, which is the difference between absorption and distribution. Third, it analyzes hidden flow, the difference between hidden buy liquidity and hidden sell liquidity.
During the training process, the model examines historical clusters where price actually moved significantly. It learns the relationship between these three factors and subsequent price direction. Through iterative gradient descent, the model adjusts its coefficients to best fit the historical data.
The output is a probability between zero and one representing the likelihood that the next cluster will see upward price movement. A probability above sixty percent suggests bullish conditions. A probability below forty percent suggests bearish conditions. Values between forty-five and fifty-five percent indicate neutral or uncertain conditions.
Model Validation Metrics
The indicator provides several metrics to help traders assess whether the prediction model is actually useful for the specific instrument they are analyzing. This validation is critically important because not all instruments exhibit predictable CVD-price relationships.
Logistic Accuracy shows the percentage of correct binary predictions across the training window. An accuracy of fifty percent is essentially random, providing no edge. Accuracy above fifty-five percent suggests the model has genuine predictive value.
Sign Agreement Rate measures how often CVD direction matched price direction historically. When CVD is positive and price goes up, or when CVD is negative and price goes down, this counts as agreement. A sign agreement rate significantly above fifty percent indicates that CVD provides useful directional information for this instrument.
Weighted Sign Agreement applies the same concept but weights each observation by CVD magnitude. High-magnitude CVD events that correctly predict direction count more than low-magnitude events. This metric reveals whether strong CVD signals are more reliable than weak ones.
If these validation metrics are close to fifty percent, traders should be cautious about relying on the model for that particular instrument. The CVD-price relationship may be too noisy or the market microstructure may not suit this type of analysis.
Bucket Analysis
The indicator performs bucket analysis by segmenting historical data into five groups based on CVD magnitude. The first bucket contains clusters where CVD was very strongly negative, more than twice the average in the negative direction. The second bucket contains moderately negative CVD clusters. The third bucket represents neutral conditions where CVD was within one standard average of zero in either direction. The fourth bucket contains moderately positive CVD, and the fifth bucket contains very strongly positive CVD.
For each bucket, the indicator calculates what percentage of clusters saw price move upward. In a market where CVD has predictive value, we would expect to see low upward percentages in negative CVD buckets and high upward percentages in positive CVD buckets. The spread between the highest and lowest buckets indicates how useful CVD is for predicting direction.
If the bucket analysis shows similar upward percentages across all buckets, the CVD-price relationship is essentially random for that instrument. If the pattern shows the expected gradient from low to high, CVD analysis should provide genuine trading edge.
Strength Tiers
Not all absorption and distribution events are equally significant. The indicator classifies events into three strength tiers based on their magnitude relative to baseline averages.
Normal events occur when CVD is between one and two times the average magnitude. These events happen regularly throughout trading sessions and represent standard market dynamics.
Strong events occur when CVD is between two and three times the average magnitude. These elevated significance events warrant additional attention and may indicate more substantial institutional activity.
Exceptional events occur when CVD exceeds three times the average magnitude. These rare occurrences often precede significant price movements and represent major institutional footprints in the market.
The indicator tracks how many events of each tier occurred during the display period, helping traders identify sessions with unusual institutional activity.
Divergence Detection
The indicator implements sophisticated divergence detection that compares trends in CVD with trends in price over a rolling window of recent clusters. Divergence occurs when these two metrics move in opposite directions or when one moves significantly while the other remains flat.
Bullish divergence manifests in two forms. Hidden accumulation occurs when the CVD trend turns increasingly positive while price remains flat, suggesting buying pressure is building without yet moving price. CVD accumulation occurs when average CVD is positive but average price movement is minimal.
Bearish divergence also manifests in two forms. Hidden distribution occurs when CVD trend turns increasingly negative while price remains stable, suggesting selling pressure is building. CVD distribution occurs when average CVD is negative but price refuses to decline.
Divergence signals are quantified by their strength relative to baseline averages, allowing traders to prioritize the most significant divergences.
Display and Interface
The indicator presents all its analysis through a comprehensive table overlay positioned on the chart. The table is organized into logical sections that can be individually enabled or disabled based on trader preferences.
The Direction Prediction section shows the current signal, probability, and period cluster breakdown between bullish, bearish, and neutral predictions. The Model Performance section displays accuracy metrics and training sample counts.
The CVD Bucket Analysis section shows the five-bucket breakdown with upward percentages for each, along with an interpretation of whether a predictable pattern exists.
The Baselines section displays the calculated averages for CVD and price movement, along with the current threshold being used for event detection.
The Results section shows total absorption and distribution for the display period, the ratio between them, net values, and an overall flow signal interpretation.
The Full versus Partial section breaks down events by type, showing how much activity was full absorption or distribution versus partial events indicating hidden liquidity.
The Hidden Liquidity section displays estimated hidden buy and sell volumes, their ratio, average shortfall percentages, and an iceberg signal interpretation.
The Strength Tiers section shows event counts by tier for both absorption and distribution, highlighting any exceptional events.
The Divergence section indicates whether bullish or bearish divergence is currently present and its strength.
The Statistics section provides cluster counts and event counts for reference.
Configuration Recommendations
For scalping and very short-term trading with holding periods of one to five minutes, traders should use smaller cluster sizes around thirty to sixty seconds, shorter average lengths around two to three hundred clusters, and enable intensity weighting to emphasize high-magnitude events.
For day trading with holding periods of fifteen to sixty minutes, the default settings work well. Cluster size of sixty for one-minute analysis, average length of seven hundred fifty for approximately two trading days of history, and single-day display period provide balanced analysis.
For swing trading with multi-day holding periods, larger cluster sizes of three hundred to six hundred representing five to ten minute blocks reduce noise. Longer average lengths of seven fifty to fifteen hundred clusters capture broader patterns. Multi-day display periods of three to five days reveal accumulation and distribution over meaningful timeframes.
Interpreting Results
When the absorption to distribution ratio exceeds one point five, this suggests bullish underpinnings. Selling pressure is being absorbed, potentially indicating institutional accumulation. Traders should look for confirmation from hidden buy liquidity metrics, model probability favoring upside, and any bullish divergence signals.
When the ratio falls below zero point six seven, this suggests bearish underpinnings. Buying pressure is meeting distribution, potentially indicating institutional selling. Validate with hidden sell liquidity metrics, model probability favoring downside, and any bearish divergence signals.
When the ratio falls between zero point eight and one point two, the market is in relative equilibrium. Traders should wait for the ratio to break out of this neutral range, watch for exceptional tier events that might signal a shift, or wait for divergence to develop.
Regarding model predictions, when accuracy exceeds fifty-eight percent and sign agreement exceeds fifty-five percent, there is a strong predictive relationship. CVD analysis provides genuine edge for this instrument. When accuracy falls between fifty-four and fifty-eight percent or sign agreement falls between fifty-two and fifty-five percent, there is moderate edge. Use signals for confirmation but not as standalone entry triggers. When both metrics fall below their respective thresholds, the relationship is weak or random. Traders should reconsider whether CVD analysis adds value for this particular instrument.
Best Practices
Allow adequate training time before relying on model predictions. The prediction model requires substantial data to train effectively. Ensure at least five hundred clusters have accumulated before trusting model outputs. The indicator displays training sample count for verification.
Always validate model quality before trading based on predictions. A fifty-two percent accuracy is statistically indistinguishable from random chance. Ensure your edge is real by checking all validation metrics.
Context matters tremendously in interpretation. Absorption during an established uptrend suggests continuation strength. Absorption during a downtrend suggests potential reversal. Always interpret signals within the broader market context rather than in isolation.
Combine this indicator with price action analysis. The CVD analysis reveals hidden dynamics but should not be used alone. Combine with support and resistance levels, trend structure analysis, volume profile, and traditional technical patterns for comprehensive market assessment.
Monitor for regime changes over time. Market microstructure can change as participation patterns evolve. Regularly review bucket analysis to ensure the CVD-price relationship remains stable. Significant deterioration in predictive patterns may indicate changing market conditions requiring parameter recalibration.
Value to the Trading Community
This indicator democratizes institutional-grade analysis. Historically, this level of order flow analysis required expensive specialized platforms that cost hundreds or thousands of dollars monthly. By implementing these concepts within TradingView Pine Script, this tool makes professional analysis accessible to all traders regardless of budget.
The indicator serves as an educational framework. Beyond practical trading applications, the visible statistics help traders understand the CVD-price relationship. Bucket analysis teaches probabilistic thinking. Model coefficients reveal which factors matter most. Validation metrics prevent overconfidence in unreliable signals.
The customization depth accommodates diverse trading styles. With over thirty configurable parameters, the indicator adapts to virtually any approach from rapid scalping to patient swing trading.
The transparent methodology builds trust. Unlike black-box commercial solutions where algorithms remain hidden, every calculation is visible in the source code. Traders can verify the logic, understand the assumptions, and modify the approach to suit their specific needs.
Conclusion
The CVD Absorption and Distribution Pro v3 represents a significant advancement in accessible order flow analysis for retail traders. By combining time-tested CVD concepts with modern statistical validation and machine learning techniques, it provides a comprehensive toolkit for understanding the hidden dynamics driving price action.
Its value lies not merely in generating trading signals but in providing the framework to understand why those signals occur and whether they are statistically meaningful for the specific instrument being traded. This combination of actionable intelligence and educational transparency makes it an invaluable addition to any serious trader analytical arsenal.
The indicator rewards those who invest time in understanding its methodology, optimizing its parameters for their specific trading style, and validating its signals against their own market experience. Used thoughtfully, it reveals the institutional footprints that remain invisible on conventional charts. The absorption, distribution, and hidden liquidity patterns it detects often presage significant market movements, giving attentive traders the opportunity to position themselves alongside smart money rather than against it.
deKoder | Whale Prints [WP]deKoder | Whale Prints | Large Trade Orderflow Detection
This open-source indicator is a clean, precision tool for revealing hidden large-volume activity directly on your chart. By scanning ultra-low timeframes while you view higher ones, it projects statistically significant volume spikes as intuitive markers giving you a clear window into institutional orderflow without visually overwhelming the price action.
Key Features & Strengths
True Intra-Bar Detection | Monitors lower timeframes down to 1-second bars, catching aggressive block trades and absorption that occur within a single higher-TF candle.
Accurate Trade Levels | Markers are placed at the actual hl2 price of the aggressive lower-TF bar, providing a far more accurate estimate of where the large trade executed than typical mid-candle approximations.
Multiple Trades Per Bar | If several significant volume spikes occur inside one higher-TF candle, all qualifying levels are displayed individually – offering greater granularity and context.
Adaptive Thresholding | Uses higher-TF volume standard deviation (stable baseline) intelligently scaled to the lower timeframe, reducing noise in quiet markets while remaining sensitive to genuine outliers.
Clean Visual Hierarchy | Three tiers (Small 🞉 / Medium ⏣ / Large 🞊) with dynamic symbol size, line thickness, transparency, and user-definable bullish/bearish coloring based on LTF candle direction.
How to Use It as an Orderflow Tool
Large volume spikes often mark the footprints of institutional players. This indicator helps you read those footprints in real time.
Small (🞉) | Moderate excess volume: early interest, probing, or building positions.
Medium (⏣) | Strong spike: increasing conviction, potential momentum shift.
Large (🞊) | Extreme outlier: frequently climactic volume signalling exhaustion or major absorption.
Why Price Often Reverses at These Levels
Large players frequently place limit orders in areas rich with liquidity – commonly just beyond recent highs/lows where retail stop-losses cluster. When price sweeps those zones:
Stop hunts trigger a cascade of forced exits, creating liquidity for larger participants to fill their limit orders.
Breakout traders who entered on the move are trapped offside and become forced buyers/sellers when price reverses.
Institutions use this liquidity to execute large orders at favorable prices with minimal immediate market impact.
The result is aggressive volume at the extreme, followed by reversal as smart money finishes filling and price returns toward fair value. Clusters of medium/large markers at swing points are classic signs of this dynamic.
Practical Analysis Tips
Reversals/Absorption | Clusters of large markers at swing highs/lows (especially opposing-color spikes) signal potential turns – buyers or sellers stepping in aggressively.
Level Defense | Trades piling up at key support/resistance suggest institutions protecting or building positions.
Trapped Traders | Large spikes beyond range pivots followed by reversal back into the range often highlight trapped breakout traders who add fuel to a move when they are forced to liquidate their positions.
Use Offset (-3 to +3) to shift markers away from current price for clearer viewing.
Pro tip: Zoom into the lower TF occasionally to see how these projected levels align exactly with aggressive candles.
Recommended Pairings
This is designed as a pure orderflow overlay to be layered with your existing setup:
Support & Resistance (horizontals, pivots, Volume Profile POC/VAH/VAL)
Market Structure tools (swing points, order blocks, fair value gaps)
Trend filters (EMAs, SuperTrend, higher-TF bias)
Momentum oscillators for timing confluence
Best Suited For
Scalping & day trading (1–15 min charts with 5–30S lower TF)
Swing trading entries (1H–4H charts with 1–5 min lower TF)
High-liquidity markets: crypto perpetuals, forex majors, volatile stocks
Add this indicator to start seeing the hidden aggression driving price and expose the hidden edges beyond the noise.
☠ FR33FA11 | deKoder ☠
Released January 2025 | Open Source
VWAP roller autoBrief Description
VWAP Roller Auto is a TradingView Pine Script indicator that combines a rolling (resetting) Volume Weighted Average Price (VWAP) with dozens of dynamic support/resistance levels derived from Gann's Square of 9 principles. The VWAP resets periodically (automatically or manually) starting from a user-defined session open time, and the Gann levels "roll" with it, creating an adaptive grid of potential price reaction zones. It's designed for intraday trading and overlays directly on the price chart.
Key Features
Rolling VWAP with Custom Session Start
VWAP calculation restarts at configurable session open (default 8:30 CST, using proper Chicago timezone handling).
Auto-Adaptive Period Selection
Automatically chooses the VWAP reset period (from 2 min up to 48 hours) based on current volatility (ATR + realized range). Targets a user-defined spacing (~0.08% by default) between consecutive VWAPs to keep the grid relevant to market conditions. Falls back to manual period if disabled.
Gann Square of 9 Levels
Generates ~8 pairs of resistance (R) and support (S) levels above/below the current rolling VWAP using octave-based increments.
Two increment modes:
Points mode — fixed point steps that double octavely (e.g., 0.305, 0.610, 1.22, 2.44, etc.).
Percent mode — percentage steps scaled so the middle octave aligns near 0.025% for finer resolution on lower-priced assets.
Visual Enhancements
Colored fills between key level groups (e.g., inner ±0.25 octave in blue, ±1–2 octave zones in gray, higher extremes in yellow/red).
Labels on the right side marking important zones ("low", "normal", "high", "3/4 - ps1", "extreme - ps2").
Central VWAP line (customizable color and offset).
Table showing current period length and whether auto mode is active.
Non-Timeframe Friendly
Works on range bars, Renko, etc., using fallback settings when timeframe is non-standard.
Use Cases
Intraday Support/Resistance Trading
Treat the rolling VWAP as fair value and use the Gann-derived levels as dynamic zones for potential reversals, breakouts, or mean reversion.
Scalping and Day Trading
Auto-period ensures the grid spacing matches current volatility — tighter levels in quiet markets, wider in volatile ones — ideal for futures (ES, NQ), crypto, or forex.
Zone-Based Entries/Exits Buy near labeled support zones (e.g., "low" or "normal" volatility bottoms) when price trades below VWAP.
Sell/short near resistance zones in overbought conditions.
Watch for hits of "extreme" zones (±8 octave) as potential strong reversal signals.
Confluence Tool
Combine with order flow, volume profile, or other indicators; the colored fills highlight "value areas" similar to market profile concepts but anchored to a rolling VWAP.
In short, VWAP Roller Auto provides a sophisticated, self-adjusting Gann-inspired grid that moves with the market's fair value, helping traders identify high-probability reaction zones throughout the trading session.
Statistical Reversion FrameworkIntroduction and Core Philosophy
The Statistical Reversion Framework constitutes a sophisticated quantitative trading instrument designed to identify high-probability mean reversion opportunities across financial markets. Unlike traditional technical indicators that rely on a single dimension of market data, this framework adopts a multi-faceted approach, synthesizing statistical probability, volume profile analysis, institutional money flow proxies, and standard technical momentum into a singular composite score. The core philosophy driving this script is the concept of confluence through heterogeneity; by combining uncorrelated or loosely correlated market factors—such as price deviation (statistics), participant commitment (volume), and macro sentiment (intermarket data)—the algorithm aims to filter out the noise inherent in standard oscillators and isolate moments where market pricing has deviated unsustainably from its intrinsic equilibrium. This tool is specifically engineered to detect market extremes—tops and bottoms—where the probability of a counter-trend move or a snap-back to the mean is mathematically significant. It operates on the premise that while asset prices can remain irrational in the short term, they are bound by statistical variance and mean-reverting properties over longer horizons, particularly when institutional flows and volume exhaustion patterns align with those statistical extremes.
Methodology: The Composite Scoring Architecture
The underlying methodology of the framework relies on a weighted composite scoring system. Rather than generating binary buy or sell signals based on a threshold crossover, the script calculates a granular score ranging from zero to one hundred for various market dimensions. These dimension-specific scores are then weighted according to user-defined inputs to produce a final "Composite Score." This approach allows for a nuanced assessment of market conditions; a setup might have extreme statistical deviation but lack volume confirmation, resulting in a lower confidence score than a setup where price, volume, and macro factors all align. The algorithm normalizes all input data into a standardized scale, typically converting raw values—such as Z-Scores or volume ratios—into a zero-to-ten ranking before aggregating them. This normalization process is critical because it allows the algorithm to compare apples to oranges mathematically, treating a standard deviation of 3.0 and a Relative Strength Index (RSI) of 20 as compatible inputs within the same equation. By summing these normalized values and applying regime-based confidence adjustments, the framework produces a dynamic signal that adapts to the volatility and trend intensity of the current market environment.
Algorithmic Component I: Statistical Analysis via Multi-Timeframe Z-Scores
The backbone of the framework is the Statistical Component, which utilizes the Z-Score (or Standard Score) to quantify the degree of price deviation. The Z-Score measures how many standard deviations the current price is from its moving average. A crucial aspect of this algorithm is its fractal nature; it does not rely on a single lookback period. Instead, it computes Z-Scores across three distinct timeframes—Daily, Weekly, and Monthly—and within each timeframe, it calculates deviations for short, medium, and long-term periods. For instance, on the daily timeframe, it assesses deviation from 50-day, 200-day, and 500-day means simultaneously. This multi-timeframe approach is designed to filter out ephemeral noise. A price move that appears extreme on a 10-day basis but is normal on a 200-day basis is likely a trend pull-back rather than a reversal. Conversely, when the Z-Scores across daily, weekly, and monthly timeframes all register values beyond significant thresholds (such as 2.0 or 3.0 standard deviations), it indicates a rare fractal alignment where the asset is historically overextended on all relevant scales. The algorithm aggregates these nine distinct Z-Score data points to form the "Statistical Score," heavily rewarding scenarios where multiple timeframes show directional alignment, as these synchronized deviations often precede powerful mean-reversion events.
Algorithmic Component II: Volume Signature and Participation Analysis
While statistical deviation highlights where the price is, the Volume Component analyzes the conviction behind the move to determine if a reversal is imminent. This section of the code employs several sophisticated logic gates to identify specific volume signatures known as Capitulation and Exhaustion. The algorithm compares current volume against a 50-day moving average to generate a volume ratio. It then correlates this ratio with price action. For example, the script identifies "Capitulation" when price collapses significantly (more than 2%) on volume that is at least three times the average. This specific signature—panic selling—often marks the psychological wash-out necessary for a market bottom. Conversely, the script detects "Volume Exhaustion" when prices drift without conviction on extremely low volume, indicating a lack of participant interest in pushing the trend further. Furthermore, the algorithm integrates On-Balance Volume (OBV) analysis, specifically looking for divergences. It detects subtle shifts where the price makes a new low, but the OBV makes a higher low, signaling that smart money is accumulating positions despite the falling price. This divergence logic is automated using pivot-based high/low detection arrays, adding a layer of foreshadowing that price-only indicators often miss.
Algorithmic Component III: Institutional Proxy and Intermarket Correlations
The Institutional Component distinguishes this framework from standard retail indicators by incorporating intermarket data that serves as a proxy for macro sentiment and institutional flow. The script pulls data from extraneous tickers—specifically the VIX (Volatility Index), Government Bond Yields (10-year and 2-year), Copper, Gold, and the Dollar Index (DXY). The logic here is grounded in fundamental market mechanics. For instance, the script analyzes the VIX to gauge market fear; however, it applies a contrarian logic. An extremely high VIX (panic) coincident with a low equity price is scored as a bullish factor, while a complacently low VIX at market highs is viewed as bearish. Similarly, the algorithm analyzes the Yield Curve (the spread between 10-year and 2-year yields). A steepening or flattening curve provides context on economic expectations, influencing the score based on whether the environment is "risk-on" or "risk-off." The Copper/Gold ratio is utilized as a barometer for global economic health; rising copper relative to gold suggests industrial demand and growth, confirming bullish setups, whereas falling copper prices signal contraction. By integrating these non-price variables, the framework ensures that a trade signal is not just technically sound but is also supported by the broader macroeconomic undercurrents that drive institutional capital allocation.
Algorithmic Component IV: Technical Momentum and Structure
The final layer of input comes from standard Technical Analysis, which serves to fine-tune the timing of the entry. This component aggregates readings from the Relative Strength Index (RSI), Moving Average Convergence Divergence (MACD), Bollinger Bands, and Support/Resistance proximity. While Z-Scores measure linear distance from the mean, the RSI and Bollinger Bands measure the velocity and elasticity of that move. The algorithm assigns higher scores when RSI hits extreme levels (below 20 or above 80) and when price action pierces the outer bounds of the Bollinger Bands. Additionally, the MACD is monitored for histogram reversals and signal line crosses that align with the mean reversion bias. A unique feature of this component is the proximity logic, which calculates how close the current price is to a 50-period high or low. If a statistical extreme coincides with a retest of a major structural support level, the technical score is maximized. This ensures that the trader is not catching a falling knife in a void, but rather identifying a reversal at a location where technical structure provides a natural floor or ceiling for price.
Regime Detection and Confidence Adjustment
A critical vulnerability of mean reversion strategies is that they can suffer severe drawdowns during strong, unidirectional trending markets (momentum regimes). To mitigate this, the framework incorporates a Regime Detection module using the Average Directional Index (ADX) and volatility thresholds. The script calculates the ADX to measure trend strength regardless of direction. If the ADX is above a certain threshold (default 25), the market is classified as "Trending." The script then cross-references this with volatility data to classify the environment into regimes such as "Crisis," "Trending," "Range," or "Mean-Revert." This classification is not merely cosmetic; it actively influences the final output through a "Regime Confidence" multiplier. If the system detects a strong trending regime, it dampens the Composite Score, requiring extraordinary evidence from the other components to trigger a signal. Conversely, if the market is detected as "Mean-Revert" or "Low-Vol Range," the confidence multiplier boosts the score, making the system more sensitive to reversion signals. This adaptive logic helps protect the trader from fading strong breakouts while aggressively capitalizing on ranging markets.
Usage Instructions and Dashboard Interpretation
Traders utilizing this framework should primarily interact with the on-screen Dashboard, which provides a real-time summary of all computed metrics. The dashboard is organized hierarchically, with the "Composite Score" and "Signal Status" at the top. A Composite Score above 70 is generally considered actionable, with scores above 85 representing "Exceptional" setups. The Dashboard is color-coded: green hues indicate bullish/oversold conditions suitable for buying, while red hues indicate bearish/overbought conditions suitable for selling or shorting. Traders should look for "Confluence" across the rows. Ideally, a robust signal will show a high Statistical score (indicating price is cheap/expensive), a high Volume score (indicating capitulation or accumulation), and a supportive Institutional score. If the Composite Score is high but the Institutional score is low, the trader should proceed with caution, as the macro environment may not support the trade.
The chart visuals provide immediate entry triggers. "Strong Bottom" (Green Triangle) and "Strong Top" (Red Triangle) shapes appear when the Composite Score breaches the high threshold and Z-Scores are at extremes. These are the primary execution signals. Smaller "Potential" markers indicate developing setups that may require lower timeframe confirmation. Additionally, specific volume icons (Diamonds) will appear to denote Capitulation or Climax events. A trader should ideally wait for the candle to close to confirm these signals. The alerts configured in the script allow the trader to be notified of these events remotely. For risk management, because this is a mean reversion tool, stop-losses should typically be placed below the swing low of the capitulation candle (for longs) or above the swing high of the climax candle (for shorts), anticipating that the statistical extreme marks the distinct turning point. By systematically waiting for the Composite Score to align with the visual signals and verifying the regime context on the dashboard, the trader effectively filters out low-probability trades, engaging only when statistics, volume, and macro-economics align.
Volume-Weighted Fibonacci PivotThis indicator automatically plots dynamic Fibonacci retracement and extension levels based on a volume-weighted pivot point within a user-defined lookback period or date range. It intelligently calculates a central "pivot" price biased toward high-volume bars, then draws symmetric levels both upward (extensions) and downward (retracements) for balanced confluence analysis.
How It Works (Technical Methodology)
Lookback Period Determination
Multiple filter modes control the data range used for calculations:
"Last X Bars": Fixed number of recent bars (default 400, max 4999).
"Manual Date": User-specified start date.
"Interactive (Chart)": Confirmed start date via input.
"None": Full available history (falls back to max bars).
Optionally, when using "Last X Bars", calculations can pull data from a higher/lower user-selected timeframe via request.security() for multi-timeframe alignment.
A dotted vertical line marks the start point in date-based modes.
Range and Pivot Calculation
Within the selected period:
Highest high and lowest low define the full price range.
Average volume is computed across the period.
Volume-Weighted Pivot: Average close price only from bars where volume > average volume (fallback to simple midpoint if no high-volume bars).
This creates a "smart" central pivot that leans toward areas of greater participation, often aligning with institutional activity.
Fibonacci Level Generation
User-configurable ratios (default: 0.236, 0.382, 0.5, 0.618, 0.786, 1.0, 1.272, 1.414, 1.618).
Levels are calculated symmetrically around the volume-weighted pivot:
Upward: Pivot + (Range × Ratio × Correction Factor) – teal/cyan shades.
Downward: Pivot - (Range × Ratio × Correction Factor) – red shades.
Correction Factor (default 0.5): Scales level spacing for tighter/wider grids without altering ratios.
Only the user-defined number of active lines (default 9) are drawn.
Visual Construction
Central Pivot Line: Thick yellow horizontal line with label showing exact price.
Up/Down Levels: Dashed lines extended into the future, labeled with ratio direction ("Up" or "Dn").
All objects redraw only on the last bar for performance, clearing previous drawings.
Multi-Timeframe Option
When enabled with "Last X Bars":
Pulls high/low/volume data from specified timeframe.
Aligns the pivot and levels to higher-timeframe structure while displaying on current chart – ideal for intraday traders seeking HTF confluence.
How to Use
This tool provides clean, volume-aware Fibonacci grids for identifying potential support/resistance, reversal zones, and targets.
Volume-Weighted Pivot: Often acts as a strong mean reversion level or fair value area.
Upward Levels (Teal): Potential resistance/extensions in bullish moves; watch for reactions on retests.
Downward Levels (Red): Potential support/retracements in bearish moves.
Confluence: High probability when price reacts at levels aligning with other tools (order blocks, pivots, volume profile).
Correction Factor: Lower values (<0.5) for tighter grids in ranging markets; higher (>0.5) for trending markets.
Multi-Timeframe Mode: Use on lower charts (e.g., 15m) with HTF input (e.g., 4H or Daily) to project major structure levels.
Common Setups:
Pullbacks to 0.618–0.786 zones for continuation entries.
Breaks beyond 1.0–1.618 for extension targets.
Reactions near pivot line for mean reversion trades.
Adjust ratios and active line count to match your preferred Fibonacci style (classic retracement vs. extensions).
Disclaimer
This indicator is a technical analysis tool and should be used in conjunction with other forms of analysis. Past performance does not guarantee future results. Always use proper risk management.
Gold Asia Session Highlighter [IST]Here is a polished description and guide for your Gold Asia Session Highlighter. You can use this text for a YouTube description, a Telegram post, or a PDF guide to explain the tool to others.
Gold Asia Session Highlighter (IST) | Visual Indicator
This is a custom TradingView indicator designed to simplify the Gold Asia Strategy. Instead of automating trades, this tool purely handles the visuals. It automatically highlights the correct Asia Session time window (adjusting for Winter/Summer hours) and marks the exact points where you should draw your Fixed Range Volume Profile (FRVP) tool.
Perfect for: Traders who prefer to draw their own FRVP levels manually but want to ensure they are using the exact, error-free time range every single day.
Features
✅ Automatic Time Zone: Strictly calculated using IST (Indian Standard Time), so you don't need to convert time zones manually.
✅ Smart Season Detection: Automatically switches between Winter Session (04:30 – 06:25) and Summer Session (03:30 – 05:25) based on the current month.
✅ Visual Guidance: Highlights the session background and places "START" and "END" labels on the exact candles.
✅ Zero Clutter: Clean visuals with no moving averages or strategy lines—just the session box.
How to Use It
Add to Chart: Apply the script to your Gold (XAUUSD) 5-minute chart. You will see a blue highlighted box appear during the Asia session.
Locate the Labels:
Look for the blue START label (bottom of the candle).
Look for the red END label (top of the candle).
Draw Your FRVP:
Select the Fixed Range Volume Profile tool from your TradingView toolbar.
Click exactly on the START candle.
Drag and release exactly on the END candle.
Trade: You now have the exact Value Area High (VAH), Value Area Low (VAL), and Point of Control (POC) for the day. Use your breakout strategy as usual!
Smart Money Flow - Institutional OI & Volume Analyzer [Pro]# 🎯 Nifty Smart Money Flow - Institutional OI & Volume Analyzer
## What It Does
Professional-grade indicator that tracks **Open Interest (OI) cycles, volume footprints, and basis analysis** across Nifty 50's top 10 heavyweight stocks (representing ~54% of index weight). Identifies institutional accumulation/distribution using **4-quadrant OI analysis** combined with volume surge detection and ATR-based regime filtering.
## 🔥 Key Features
### Institutional-Grade Analytics
- **OI Cycle Detection**: Identifies Long Buildup (LB), Short Covering (SC), Short Buildup (SB), and Long Unwinding (LU) for top 10 Nifty constituents
- **Volume Validation Layer**: Detects institutional footprints via volume spikes >150-200% of 20-period MA
- **Cost of Carry Analysis**: Real-time basis tracking between spot and futures prices
- **Signal Quality Score (0-100)**: 4-component scoring system measuring alignment strength, weighted momentum, trend purity, and basis confirmation
### Advanced Regime Detection
- **Percent-Based ATR Filter**: Normalized volatility comparison prevents false signals across different price levels
- **Consecutive Bar Confirmation**: Requires 3+ bars of sustained signal before regime classification
- **Dynamic Strategy Recommendations**: Suggests optimal option structures (Call/Put Spreads, Iron Condor, Straddle) based on market regime
### Smart Money Divergence Alerts
- **Top Stock Divergence Detection**: Warns when heavyweight stocks (HDFC, Reliance, ICICI) contradict index signal
- **Pareto Principle Application**: Weights top 3 stocks (~30% index weight) for maximum predictive accuracy
## 📊 Visual Dashboard
Clean, dark-theme optimized table displaying:
- Individual stock OI cycles with color coding
- Basis/premium percentages for each heavyweight
- Alignment metrics (Bullish/Bearish/Neutral count)
- Quality score with position sizing guidance (Full Size/Spreads Only/No Trade)
- Institutional volume confirmation count
- Real-time regime status with ATR ratio
## 💡 How To Use
### For Intraday Traders (1m-15m)
1. Enable "Institutional Volume Filter" for noise reduction
2. Wait for Quality Score ≥60 for directional trades
3. Use regime-based structure recommendations (displayed in INDEX row)
### For Swing/Positional Traders (1H-Daily)
1. Focus on consecutive bar count ≥3 for trend confirmation
2. Check for divergence warnings before major positions
3. Use basis analysis to time entries (premium = bullish sentiment)
### For Options Traders
1. **Quality Score 60-100**: Full size directional (Buy Calls/Puts)
2. **Quality Score 30-60**: Spreads only (Call Spread/Put Spread)
3. **Quality Score 0-30**: Avoid directional; use Iron Condor in choppy regime
## ⚙️ Customization Options
- **10 Toggle Switches**: Show/hide individual stocks for cleaner dashboard
- **Volume Threshold**: Adjust institutional detection sensitivity (default 1.5x)
- **Regime ATR Length**: Fine-tune volatility measurement period (default 14)
- **Alignment Thresholds**: Set minimum bullish/bearish stock count for signals (default 5/10)
## 📈 Best For
- Nifty 50 Index traders (Futures & Options)
- Bank Nifty analysis (3 major banks included)
- Institutional flow tracking
- Multi-stock correlation analysis
- Regime-based strategy adaptation
## 🚨 Alerts Included
✅ Strong Bullish Signal (7+ stocks aligned + volume confirmation)
✅ Strong Bearish Signal (7+ stocks aligned + volume confirmation)
✅ Divergence Warning (Top stocks contradict index move)
✅ Institutional Volume Surge (7+ stocks with volume spikes)
## 📚 Technical Foundation
Based on institutional trading principles:
- **Order Flow Analysis**: Price + OI correlation for position identification
- **Smart Money Concepts**: Volume profile + basis analysis for institutional tracking
- **Regime Filtering**: Adaptive strategy selection based on volatility environment
- **Weighted Aggregation**: Pareto principle ensures top stocks drive signal quality
## 🔧 Version History
- v6.0: Initial release with 10-stock coverage
- Optimized request.security() calls: 30 total (3 per stock)
- Dynamic table rendering with barstate.islast efficiency
## 📌 Important Notes
- **Data Source**: NSE India (Spot + Futures + OI)
- **Update Frequency**: Real-time (dependent on chart timeframe)
- **Best Timeframes**: 5m, 15m, 1H, Daily
- **Avoid**: Pre-market hours (OI data may be stale)
---
**Category**: Volume / Order Flow
**Market**: NSE India - Nifty 50
**Timeframe**: Multi-timeframe (1m to Daily)
**Complexity**: Advanced (suitable for intermediate to professional traders)
## Tags (for SEO)
#nifty50 #orderflow #openinterest #institutional #smartmoney #volume #regime #niftyfutures #niftyoptions #oi #banknifty #heavyweights #basis #costofcarry #divergence #qualityscore #nseindia #optionstrading #algorithmic #quantitative
MTF Key Levels Pro [Confluence & Flow]MTF Key Levels Pro is an all-in-one market structure and context toolkit designed to reduce chart noise and surface the price levels that matter most. It combines multi-timeframe trend alignment, institutional-style reference levels (VWAP anchors, pivots, volume POC, prior day levels), and confluence detection so you can quickly identify where price is likely to react—and whether the broader flow supports continuation or reversal.
This script is intentionally modular: you can enable only what you trade (scalping, day trading, swing, position) while keeping the chart readable via selective plotting and a compact MTF dashboard.
What It Does
1) Key Levels Engine (Core Map)
The indicator plots a “key-level stack” from multiple methodologies so you are not relying on a single lens:
Volume Profile POC (Point of Control) over a configurable lookback (highest traded activity zone).
Daily Pivot Levels calculated from prior day H/L/C (PP, R1, S1 and extended levels in the logic).
Fibonacci Retracements from recent swing range (38.2 / 50 / 61.8).
Moving Averages (three configurable MAs for trend structure).
Previous Day High/Low (PDH/PDL) for intraday reference points.
ATH/ATL tracking (optional) for macro context.
2) Anchored VWAP Suite (Flow Anchors)
A multi-anchor VWAP system that resets and recalculates at the start of each period:
Hourly VWAP (scalping / micro-structure)
Daily VWAP (day trading standard reference)
Weekly VWAP (swing context)
Monthly VWAP (position context)
3) Multi-Timeframe Alignment Dashboard (Trend Consensus)
The dashboard pulls 5 configurable timeframes (defaults: 5m, 30m, 1h, 4h, D) and displays:
Price snapshot per timeframe
Trend direction (simple momentum/trend comparison vs lookback)
Volume
% change
Alignment status (BULL ALIGNED / BEAR ALIGNED / MIXED), including bars since alignment began
Use this to avoid trading against higher timeframe pressure and to time entries when multiple timeframes agree.
4) Order-Flow Lite (Volume & Delta)
A practical “flow confirmation” layer using candle-based volume classification:
Buy vs sell volume approximation (close vs open)
Delta strength label (Strong Buy / Strong Sell / Neutral)
Volume surge detection vs SMA(volume) with a configurable multiplier
Optional background shading on surge events
5) Confluence Zones (Signal Compression)
Confluence zones automatically form when multiple independent levels cluster together within a configurable tolerance:
You choose tolerance % and minimum levels required (e.g., 3+).
Zones are plotted as highlighted regions and listed in the dashboard with proximity markers (AT / NEAR).
This is the “decision layer”: the script doesn’t just draw levels—it tells you where multiple reasons to react overlap.
How to Use It (Practical Outline)
Typical Workflow
Check dashboard alignment: trade with alignment for continuation setups; treat MIXED as caution/mean-reversion regime.
Identify nearest confluence zones: prioritize trades at/near zones versus isolated single levels.
Use VWAP anchor + PDH/PDL + Pivot as the intraday framework, then confirm with volume surge/delta bias.
Manage risk around zones: zones are natural areas for rejection, breakout, or retest logic.
Recommended Configurations (Quick Start)
Scalping (1m–5m chart): Hourly VWAP + Daily VWAP + Daily Pivots + Confluence
Day Trading (5m–1h): Daily VWAP + Pivots + PDH/PDL + Confluence + Alignment dashboard
Swing (1h–4h): Weekly VWAP + MA50/MA200 + Confluence + Alignment
Position (D/W): Monthly VWAP + MA200 + ATH/ATL + Confluence
Alerts Included
Confluence Touch: triggers when price is within proximity of a confluence zone.
Trend Change: triggers when the alignment state changes (e.g., MIXED → BULL ALIGNED).
Volume Spike: triggers on surge events versus the configured baseline.
Notes / Intended Use
This indicator is built for context and decision support (key levels + trend consensus + flow cues). It is not a standalone “buy/sell system” by design; instead, it provides a structured map for entries, invalidation, and target planning around areas of highest market agreement.
If you want, I can also produce a TradingView-ready “Description + Feature bullets + How to trade + Settings guide + Alert guide” in the exact formatting style commonly used on public TradingView scripts (including a short disclaimer and a clean feature list).
NY Session Vol Entries (RB Trading)NY Session Vol Entries (RB Trading)
NY Session Vol Entries is an intraday analysis script designed to evaluate price behavior during U.S. market hours on the one hour chart. It focuses on the interaction between relative volume expansion, adaptive volatility structure, and directional momentum alignment to help users interpret active market conditions.
The script is intended specifically for liquid U.S. equities during the New York session and is not designed for use outside this context.
Intended Usage and Scope
• Timeframe: 1 hour only
• Market hours: New York session
• Asset class: U.S. equities with consistent volume
• Style: Intraday structure and momentum evaluation
• Alerts: Available for all signal types
Core Framework
The script evaluates market behavior through three interdependent components that must align before a setup is displayed:
Relative volume behavior
Volatility expansion and contraction
Directional momentum context
This structure helps filter low-participation periods and reduce noise.
Relative Volume Analysis
The script compares current volume to a rolling 14-period average to identify periods where participation meaningfully deviates from typical conditions.
Elevated volume often occurs during session opens or active repricing phases. When volume remains muted, the script suppresses signals to avoid low-quality environments.
Adaptive Volatility Structure
Volatility bands are calculated using an 8-period true range measurement. These bands adjust dynamically based on recent volatility rather than remaining static.
During elevated participation, the bands compress to reflect tighter price acceptance. As volatility expands, the bands trail price to help visualize directional structure.
Directional Momentum Context
Directional context is determined using a dual moving average relationship.
• When short-term momentum is above longer-term momentum, the script allows only bullish evaluations
• When short-term momentum is below longer-term momentum, the script allows only bearish evaluations
This alignment reduces counter-directional signals and helps maintain structural consistency. The filter can be disabled if users wish to study range behavior.
Signal Classification
The script displays two types of informational labels:
Volume-Aligned Signals
These appear only when directional momentum and relative volume expansion align at candle close.
Momentum Rotation Signals
These indicate directional shifts regardless of volume and are intended to provide context rather than standalone triggers.
All signals are confirmed only after the candle closes. No intrabar logic is used.
Stop and Target Reference Plotting
When conditions align, the script plots visual reference levels:
• A stop reference positioned beyond the momentum structure
• A projected target reference calculated using a fixed 2R multiple relative to the stop distance
These levels are provided for consistency and planning. They are not forecasts or guarantees.
Session and Timing Considerations
The script is designed specifically for New York market hours. Liquidity and participation outside this window often distort volume and volatility behavior.
Earnings sessions should be treated with caution, as event-driven price action can override normal structural behavior.
Opening Range Consideration
The first one hour candle of the New York session can display elevated volatility due to initial repricing. Allowing additional candles to form may provide clearer structural information before evaluating signals.
Why One Hour and New York Session
The one hour timeframe balances structure and responsiveness while reducing lower-timeframe noise. New York trading hours provide the most reliable volume profile for U.S. equities, making relative volume analysis more meaningful.
Settings Overview
• Volatility period: 8
• Volatility multiplier: 3.0
• Volume average period: 14
• Momentum averages: 8 and 21
• Trend filter: Enabled by default
• Alerts available for all signal types
Chart Usage Guidelines
• Use the script on a clean chart
• Avoid stacking additional momentum or volume indicators
• Drawings should only be used when they help interpret structure
Important Notes
This script analyzes historical price and volume behavior. It does not predict future price movement or ensure outcomes. Users should test the tool, understand its logic, and apply independent risk management.
XAUMO MegaBar VSA by Mohamed Mahmoud XAUMO MegaBar VSA — Smart Money Breakout & Reversal Engine for XAUUSD
(Educational Use Only)
1) WHAT THIS INDICATOR DOES
XAUMO MegaBar VSA is an institutional-style smart money engine for XAUUSD designed to show you what professional money is doing, not just where price is moving.
It combines:
- MegaBar detection on 1H and 15m
- VSA (Volume Spread Analysis) events
- VPOC / WVPOC and volume clusters
- Liquidity sweeps, CHoCH, order blocks, FVGs
- Full Fibonacci leg mapping (retracements + extensions)
- Pre-built execution ladders (Entry, SL, TP1–TP4, Reverse Fib trades)
All in one dashboard with:
- Color-coded candles
- Clean, ATR-offset labels
- Optional tables and debug panels
So traders can quickly decide:
“Is this move driven by smart money, or is it just noise?”
2) CORE MODULES & FEATURES
A) SESSION + ACCUMULATION / DISTRIBUTION CONTEXT
- Session filter: London, New York, Overlap, or custom.
- Accumulation / distribution zones shaded on chart with adjustable colors/opacity.
- Quick legend so you always know if the market is in “smart money accumulation” or “distribution”.
HOW TRADERS USE IT:
Focus only on your trading session and instantly see if volume is building (accumulation), unloading (distribution), or flat. This helps you avoid trading in dead liquidity.
--------------------------------------------------
B) MEGABAR ENGINE + FIB MAP
- Automatically detects “MegaBars” (institutional candles) on 15m and 1H.
- Uses body size, range, and volume to pick only meaningful bars.
- Builds a full Fibonacci map from each active MegaBar:
• Retracements: 0, 13, 23.6, 38.2, 50, 61.8, 78.6, 86.2, 100, and -33.
• Extensions: 125% up to 600%+ (configurable ladder).
- Per-level style controls:
• Color, width, line style (solid/dotted/dashed).
• Optional price labels with ATR-based offsets.
- Main Fib legend that explains shallow / normal / deep reload zones.
HOW TRADERS USE IT:
You stop guessing where to buy or sell. You trade around the institutional leg:
- Buy dips into defined reload zones after bullish MegaBars.
- Sell rallies into extension zones after bearish MegaBars.
- Use clean, pre-mapped structure for both scalps and swings.
--------------------------------------------------
C) VSA ENGINE + CANDLE LABELING
- Detects a full set of VSA events such as:
• No Demand / No Supply
• Stopping Volume
• Absorption
• Springs / Upthrusts
• Buying Climax / Selling Climax
• Bullish / Bearish EVR
• Tests and confirmed VSA signals at S/R
- Enhances with:
• Body vs total range analysis
• Wick dominance for exhaustion vs aggression
• Momentum and volume confirmation filters
HOW TRADERS USE IT:
Each label becomes a “comment” from smart money on the chart:
- “No Demand” near resistance + weak RVOL = skip long entries.
- “Stopping Volume” + spring at Fib reload zone + VPOC cluster = potential high-quality long.
- Combine VSA with the MegaBar Fib map and volume profile for structured decisions.
--------------------------------------------------
D) SUPERSONIC BREAKOUT ENGINE
- Calculates a breakout strength score using:
• RVOL and volume expansion
• Spread expansion vs recent bars
• Body quality (body vs range)
• Bar progress (how much of the candle’s time has elapsed)
- Differentiates:
• Potential vs confirmed breakouts
• Strong, volume-backed moves vs weak spikes
- Optional debug label explaining:
• Momentum score
• Volume ratio and RVOL
• Spread behaviour
• Body quality
• Bar elapsed %
HOW TRADERS USE IT:
You avoid chasing every big candle.
You only act when:
- Breakout strength is high,
- Volume confirms the move,
- Structure (Fib / VPOC / CHoCH) is aligned.
--------------------------------------------------
E) VPOC / WVPOC CLUSTERS & DYNAMIC ZONES
- Tracks real-time VPOC and WVPOC.
- Identifies VPOC/WVPOC clusters as powerful S/R zones.
- Confirms bullish or bearish breaks when price clears these levels with volume.
- Provides dynamic SL and TP logic:
• SL near/behind VPOC with ATR buffer.
• TP ladders aligned with volume structure.
HOW TRADERS USE IT:
You anchor your risk to where the most volume traded, not random price points:
- Use VPOC as a rational stop placement.
- Treat VPOC/WVPOC clusters as “coiled springs” – zones where large moves often start.
--------------------------------------------------
F) SMART MONEY ENTRY ENGINE (1H + 15M MEGABARS)
- Uses MTF `request.security` logic to bring 1H MegaBars into lower timeframes.
- Identifies:
• 1H + 15m confluence entries (A-grade setups).
• Single-TF entries (B-grade setups).
- Pre-calculates for each scenario:
• Entry level (Fib-based within the MegaBar range).
• Stop loss (beyond range or leg-based).
• TP1–TP4 along Fib extensions / structure.
- Labels show:
• “Entry = …”
• “SL = …”
• “TP1 = … / TP2 = … / TP3 = … / TP4 = …”
with adjustable font size and ATR-based offsets.
- Optional “show only latest” mode to keep your chart clean.
- Alert-ready so you can receive notifications when conditions are met.
HOW TRADERS USE IT:
You get a fully defined execution ladder:
- The engine tells you where a logical entry is,
- Where a logical SL should be,
- And how to scale out with multiple targets.
You can use:
- Confluence setups for main trades,
- Single-TF setups for more frequent but lower conviction trades.
--------------------------------------------------
G) REVERSE FIB TRADING MODULE
- Triggers after extended moves when key TPs are hit.
- Looks for:
• Rejection candles at or beyond major extensions.
• Exhaustion + VSA confirmation.
- Builds a reverse (counter-trend) Fib plan:
• Counter-trend entry from extension extremes.
• TP ladder based on 0.618, 0.786, 1.236, 1.382, 1.5, 1.618, 2.0, etc.
• SL and TSL based on ATR and Fib distance.
- ATR timeframe adapts to chart timeframe.
HOW TRADERS USE IT:
You can fade overextended moves once structure and P/A agree:
- Trend traders can use it to tighten or exit.
- Counter-trend traders can structure “fade” setups with defined risk.
--------------------------------------------------
H) LIQUIDITY SWEEPS, CHoCH, ORDER BLOCKS, FVGs
- Detects sweeps above highs and below lows (liquidity grabs).
- Marks CHoCH (Change of Character) when structure flips with volume.
- Basic smart money order block detection (bullish / bearish).
- FVGs (Fair Value Gaps) shaded on chart, removed when filled.
HOW TRADERS USE IT:
Combine sweeps + CHoCH + MegaBar + VSA + VPOC:
- Join clean, volume-backed continuations.
- Fade obvious stop hunts when they reject into strong zones.
--------------------------------------------------
I) VSA + BREAKOUT DASHBOARD TABLE (OPTIONAL)
- Compact table with:
• VSA context
• Breakout score
• RVOL / volume status
• Spread and candle quality
• ATR regime
• Close position within the bar
• VPOC and elapsed bar percentage
HOW TRADERS USE IT:
Before pressing the button, glance at the table:
- Is volatility supportive?
- Is volume confirming?
- Is this a clean breakout or a tired move?
This pushes you toward rule-based execution and away from impulse.
--------------------------------------------------
3) TYPICAL TRADING WORKFLOW WITH XAUMO MEGABAR VSA
A) Pick timeframe and session
- Use 15m or 1H on XAUUSD.
- Align the indicator’s session inputs with your actual trading hours.
B) Read context first
- Check accumulation / distribution zones.
- Look at VSA events and the breakout engine.
- Note where VPOC / WVPOC are relative to price.
C) Find the active MegaBar and its Fib structure
- Identify the most recent bull/bear MegaBar.
- See if price is:
• Pulling back into reload zones,
• Breaking out of them,
• Or extending into high-risk zones.
D) Wait for smart money confirmation
- Look for:
• Confluence setups (1H + 15m MegaBars),
• Strong breakout score,
• Valid VSA signals,
• Helpful structure: CHoCH, FVG, sweeps.
E) Execute using the printed ladders
- Use the on-chart Entry / SL / TP labels as your execution framework.
- Adjust lot size and risk % according to your own plan.
F) Manage and exit
- Use ATR / VPOC logic to trail or lock profits.
- Rotate to reverse Fib setups if extensions look exhausted.
4) WHO THIS INDICATOR IS FOR
- Gold traders (XAUUSD CFD or spot) on 15m and 1H.
- Traders who prefer institutional structure (volume, VPOC, SMC, Fib) over simple indicators.
- Traders who want pre-structured entries, SL, and TP ladders without losing flexibility.
- Advanced students of VSA and smart money concepts who want everything in one tool.
5) FULL EDUCATIONAL DISCLAIMER (READ CAREFULLY)
- This indicator and all descriptions are for EDUCATIONAL PURPOSES ONLY.
- NOTHING in this script, its labels, tables, alerts, outputs, or documentation is:
• Investment advice
• Trading advice
• A recommendation to buy or sell any asset
• A signal service or portfolio management tool
- Markets are risky. Trading leveraged instruments such as CFDs, futures, or margin products involves a HIGH RISK of loss, including the possible loss of ALL invested capital.
- Past performance, backtests, or hypothetical examples DO NOT guarantee future results.
- Any probabilities, scores, or “quality levels” shown by the indicator are purely algorithmic and DO NOT represent guarantees or promises of profit.
- You are solely responsible for:
• Your position sizing
• Your leverage
• Your entries, exits, and risk management
• Compliance with local regulations and tax rules
- Before trading live with real money, you should:
• Thoroughly backtest and forward-test the indicator.
• Use a demo account to understand how signals behave in real time.
• Consult a licensed financial professional if you need personalised investment or trading advice.
- By using this indicator:
• You accept that the author and any associated entities or brands (including XAUMO, XAUMO indicators, and any promotional text) bear NO LIABILITY for any financial losses, missed gains, or decisions you make based on this tool.
• You agree that you are acting entirely at your own risk and that all outputs are informational and educational, not prescriptive trading instructions.
In short:
Use XAUMO MegaBar VSA as a powerful educational and analytical companion,
NOT as a substitute for your own independent judgment, testing, and risk control.
=====================================================
XAUMO MegaBar VSA — محرّك البريك آوت و الريفرسال بتاع السمارت ماني للدهب
( استخدام تعليمي بس)
1) المؤشّر ده بيعمل إيه؟
XAUMO MegaBar VSA معمول مخصوص للـ XAUUSD عشان يورّيك "الفلوس الكبيرة" بتتحرك إزاي،
مش بس السِعر رايح فين.
بيجمع في حتّة واحدة:
- رصد MegaBar على الساعة والربع ساعة
- VSA (Volume Spread Analysis) – سلوك الفوليوم جوّه الشمعة
- VPOC / WVPOC و تجمّعات الفوليوم المهمّة
- سويپس لليكويديتي + CHoCH + Order Blocks + FVGs
- خريطة فيبوناتشي كاملة (Retrace + Extensions)
- سلالم تنفيذ جاهزة (Entry, SL, TP1–TP4 + صفقات Reverse Fib)
وكل ده:
- بألوان واضحة على الشموع
- لِيبلات متظبّطة بـ ATR Offset
- Tables و Panels اختيارية
عشان المتداول يسأل نفسه:
"الحركة دي بتاعة سمارت ماني؟ ولا مجرد دوشة ملوش لازمة؟"
2) أهم الموديولات اللي جوّه المؤشّر
A) الكونتكست بتاع السيشن + تجميع/توزيع
- فلتر جلسات: لندن – نيو يورك – overlap – أو وقت تحطّه انت.
- مناطق Accumulation / Distribution متظلّلة بألوان أنت بتختارها.
- لچند بسيط يوضّح لك السوق دلوقتي: تجميع؟ توزيع؟ ولا نايم.
المتداول يستخدمه إزاي؟
تركّز بس في الجلسة اللي انت شغّال فيها، وتشوف فورًا:
فيه بناء مراكز؟ فيه تصريف؟ ولا مفيش فوليوم أصلاً؟
ده يقلّل دخولك في أوقات السوق فيها “ميت”.
--------------------------------------------
B) محرّك الـ MegaBar + خريطة الفيبوناتشي
- المؤشّر يلقط لوحده الـ MegaBars (شموع مؤسّسات) على 15m و 1h.
- بيعتمد على: حجم الجسم، مدى الشمعة، الفوليوم.
- يرسم خريطة فيبوناتشي كاملة من الرجل الأساسية:
• Retrace: 0, 13, 23.6, 38.2, 50, 61.8, 78.6, 86.2, 100, -33
• Extensions: من 125% لحد 600%+ (سلم قابل للتعديل)
- لكل مستوى:
• لون / سماكة / ستايل (سوليد – دوتيد – داشد)
• ليبل سِعر مع Offset بـ ATR
- لچند يشرح لك Reload Zones: ضحلة / عادية / عميقة.
المتداول يستخدمه إزاي؟
بدل ما “تخمّن” فين تشتري وتبيع:
- تشتري الدِپ جوّه مناطق Reload بعد MegaBar صاعد.
- تبيع الريبوند جوّه Extensions بعد MegaBar هابط.
- عندك هيكل واضح للسوينج والسكالب من غير فوضى.
--------------------------------------------
C) VSA + لِيبلات على الشموع
- يكتشف أحداث VSA زي:
• No Demand / No Supply
• Stopping Volume
• Absorption
• Spring / Upthrust
• Buying / Selling Climax
• EVR (شموع مجنونة فوليومًا)
• Tests و Confirmed Signals عند الدعوم/المقاومات
- مع تحسينات:
• تحليل Body vs Range
• مين اللي غالب؟ جسم الشمعة ولا الذيول؟
• فلتر Momentum + Volume
المتداول يستخدمه إزاي؟
كل ليبل على الشمعة = كومنت من السمارت ماني:
- No Demand عند مقاومة + RVOL ضعيف → بلاش تشتري.
- Stopping Volume + Spring جوّه Reload Zone + VPOC → فرصة قوية للشراء.
- توصل بين VSA + Fib + VPOC فتفهم “مين بيكسب المعركة”.
--------------------------------------------
D) محرّك البريك آوت Supersonic
- بيحسب Score للقوة بتاعة البريك آوت من:
• RVOL + Volume Expansion
• توسّع السبريد مقارنة بالشموع السابقة
• جودة جسم الشمعة (جسم ولا ذيل)
• نسبة الوقت اللي عدّى من الشمعة الحالية
- يفرّق بين:
• بريك آوت محتمل vs مؤكد
• حركة قوية مدعومة بفوليوم vs “شمعة شو”
- يقدر يطلع ليبل Debug يشرح:
• Momentum Score
• Volume Ratio / RVOL
• Spread Behaviour
• Body Quality
• % الوقت اللي فات من عمر الشمعة
المتداول يستخدمه إزاي؟
ماتجريش ورا كل شمعة كبيرة:
- استنَى لما يكون الـ Score عالي،
- والفوليوم مصدّق الحركة،
- والهيكل (Fib / VPOC / CHoCH) موافق.
ساعتها بس البريك آوت يستاهل المخاطرة.
--------------------------------------------
E) VPOC / WVPOC + مناطق الفوليوم
- يرقب VPOC و WVPOC في الوقت الحقيقي.
- يحدّد Clusters مهمة تتحوّل لـ Support / Resistance محترم.
- يراقب كسر المناطق دي بفوليوم واضح (بداية موجة جديدة).
- SL و TP ديناميك:
• SL حوالين VPOC مع Buffer من ATR.
• TP متوزع على مستويات فيبوناتشي و زونات فوليوم.
المتداول يستخدمه إزاي؟
بتربط مخاطرتك بأين اشتغل الفوليوم التقيل:
- VPOC = منطق منطقي للستوب.
- Clusters = زون ضغط ينفع يبدأ منها ترند قوي.
--------------------------------------------
F) محرّك الدخول بتاع السمارت ماني (1h + 15m MegaBars)
- يجيب MegaBars بتاعة الساعة جوّه فريمات أقل بالـ `request.security`.
- يميّز:
• Confluence بين MegaBar الساعة + MegaBar الربع ساعة (صفقة A-Grade).
• MegaBar على فريم واحد بس (B-Grade).
- يجهّز تلقائيًا:
• Entry
• SL
• TP1–TP4 على Extensions و مستويات هيكلية.
- اللّيبلات تكتب:
• Entry = …
• SL = …
• TP1 = … / TP2 = … / TP3 = … / TP4 = …
مع تحكّم في حجم الخط و ATR Offset.
- فيه اختيار “أظهر آخر سيناريو بس” عشان الشارت يفضل نضيف.
- جاهز للـ Alerts لما الشروط تكمّل.
المتداول يستخدمه إزاي؟
يبقى عندك Execution Ladder كامل:
- فين تدخل،
- فين تحط الستوب،
- إزاي تقسم الخروج على أكتر من هدف.
--------------------------------------------
G) موديل الـ Reverse Fib (صفقات عكس الاتجاه)
- بيشتغل بعد ما السعر يبالغ في الحركة و يوصل Extensions معيّنة.
- يدور على:
• شموع رفض عند/بعد Extensions.
• Exhaustion + إشارة VSA.
- يرسم خطة عكسية:
• Entry عكسي من Extension Extreme.
• TP سلم مبني على 0.618, 0.786, 1.236, 1.382, 1.5, 1.618, 2.0, … إلخ
• SL و TSL مبنيين على ATR و مسافة الفيبوناتشي.
المتداول يستخدمه إزاي؟
لو انت ترند تريدر:
- تستخدمه عشان تقفل/تخفف عند تمدّد مبالغ فيه.
لو انت Counter-Trend:
- يديك سيناريو “فِيد” منطقي بمخاطرة محسوبة.
--------------------------------------------
H) سويپس لليكويديتي + CHoCH + Order Blocks + FVGs
- يوسم مناطق ضرب الستوبات فوق الهاي وتحت اللو (Liquidity Grabs).
- يحدد CHoCH لما الاتجاه يغيّر شخصيته مع فوليوم.
- يرصد Order Blocks أساسية (Bullish / Bearish).
- يظلّل الـ FVGs و يشيلها لما تتعبّى.
المتداول يستخدمه إزاي؟
تجمع بين:
MegaBar + VSA + Fib + VPOC + Liquidity:
- يا إمّا تلحق موجة نظيفة،
- يا إمّا تفِيد Stop Hunt غبي اتكشف على الشارت.
--------------------------------------------
I) داشبورد VSA + Breakout (Table اختياري)
- Table صغيرة فيها:
• حالة VSA
• قوة البريك آوت
• RVOL / Volume
• Spread & Candle Quality
• حالة ATR
• مكان الإغلاق جوّه الشمعة
• وضع VPOC
• نسبة الوقت اللي عدّى من الشمعة
المتداول يستخدمه إزاي؟
قبل ما تدوس Buy / Sell:
- تبص على التابل ثانيتين:
الدنيا شغّالة ولا لأ؟
فيه فوليوم؟ فيه ترند؟ ولا حركة ميتة؟
ده يقلل قرارات “من غير plan”.
3) سيناريو شغل متداول على XAUMO MegaBar VSA
1) اختار الفريم + الجلسة
- 15m أو 1h على XAUUSD.
- ظبّط سيشن لندن/نيويورك زي وقت شغلك الحقيقي.
2) اقرأ الكونتكست
- السوق بيبنِي مراكز؟ بيصفّي؟ ولا نايم؟
- إيه إشارات الـ VSA و Score البريك آوت؟
- فين VPOC / WVPOC من السعر؟
3) دور على MegaBar النشط و خريطة الفيبوناتشي بتاعته
- السعر:
• بيرجّع جوّه Reload Zone؟
• بيكسر البرنچ؟
• ولا داخل على Overextension؟
4) استنَى تأكيد السمارت ماني
- Confluence بين MegaBar الساعة والربع ساعة.
- Breakout Score محترم.
- VSA منطقي (No Demand, Stopping Volume, Spring, …).
- Structure: CHoCH / FVG / Liquidity Sweep في اتجاه الصفقة.
5) نفّذ باستخدام السلم المطبوع على الشارت
- استخدم Entry / SL / TP1–TP4 كـ هيكل أساسي.
- عدّل اللوت / الريسك حسب خطتك انت.
6) الإدارة والخروج
- استعمل ATR + VPOC في Trailing/Lock.
- لما Extensions تبان مبالغ فيها → ركّز على Reverse Fib.
4) المؤشّر ده مناسب لمين؟
- اللي بيتاجر دهب XAUUSD (CFD أو Spot) على 15m و 1h.
- اللي بيحب شغل مؤسّسات: Volume, VPOC, SMC, Fib مش مؤشرات بسيطة.
- اللي عايز Execution Plan جاهز (Entry/SL/TP) بس لسه عنده حريّة تعديل.
- اللي عايز يتعلّم VSA و Smart Money Concepts بشكل تطبيقي على شارت واحد.
5) إخلاء مسؤولية كامل (مهم تقراه)
- المؤشّر ده وكل الكلام اللي حواليه للتعليم بس.
- مش:
• نصيحة استثمارية،
• ولا توصية شراء/بيع،
• ولا خدمة إدارة محافظ،
• ولا سيجنال سيرڤس.
- التداول في الأسواق (خصوصًا المشتقات، الـ CFD، الفيوتشر) فيه مخاطرة عالية جدًا،
وممكن تخسر جزء كبير أو كل رأس مالك.
- أي أداء سابق، باك تست، أو مثال افتراضي → مش ضمان لنتيجة مستقبلية.
- أي نسبة احتمالات، Scores، أو “Quality” بيطلعها المؤشّر:
• دي حسابات كود، مش ضمان ربح،
• مش وعد ولا تعهّد بأي نتيجة.
- انت المسؤول 100% عن:
• حجم العقود اللي بتدخلها،
• الرافعة اللي بتستخدمها،
• أماكن الدخول والخروج،
• وإدارة المخاطرة بتاعتك،
• والتزامك بالقوانين والضرائب في بلدك.
- قبل ما تستخدم المؤشّر على حساب حقيقي:
• جرّب كويس على باك تست و فورورد تست،
• اشتغل فترة على Demo،
• لو محتاج نصيحة مالية شخصية → ارجع لمستشار مالي مرخَّص.
باختصار:
XAUMO MegaBar VSA ده أداة تعليمية وتحليلية قوية تساعدك تفهم حركة الذهب،
مش زرار “اطبع فلوس”.
انت صاحب القرار، وانت صاحب المسؤولية، وانت اللي بتتحمّل أي ربح أو خسارة.
Bullish Volume RatioBullish Volume Ratio (BVR) Indicator
The Bullish Volume Ratio (BVR) is a sophisticated momentum oscillator designed to measure the true intensity of buying pressure versus selling pressure in the market. It provides a unique, statistically-driven view of market conviction, making it an essential tool for traders who seek to confirm trend health and anticipate major shifts.
BVR achieves its precision by not only assessing net volume but also using proprietary volume weighting logic to gauge the quality of participation in each candle, filtering out market noise to present a clear picture of underlying demand.
Key Features
Statistically-Driven Conviction: The indicator utilizes a Z-Score to measure how far the current BVR reading deviates from its historical average, providing an objective measure of whether buying or selling is truly exceptional or just noise.
Clear Visual Signals: The oscillator plot is designed for clear interpretation on a separate pane, helping you identify regime shifts without cluttering the main price chart.
Real-Time Data Dashboard (Optional): A customizable table on the chart displays the current BVR, Z-score, and other critical volume metrics at a glance.
Simplified Trading Guide
The BVR indicator simplifies volume analysis into clear, actionable signals that can be used for trend confirmation and reversal anticipation.
1. Trend Confirmation
Use the BVR to confirm the momentum of an existing trend:
Bullish Confirmation: When price is trending up, look for the BVR line to be rising and consistently above the center line. This signals that buyers are in firm control and the uptrend has strong volume conviction.
Bearish Confirmation: When price is trending down, look for the BVR line to be falling and deep below the center line. This indicates sellers are dominating the volume profile, confirming the strength of the downtrend.
2. Identifying Trade Entry/Exit Zones
The indicator's Z-Score component is key to spotting extremes that often precede a reversal:
Potential Long Entry: Look for a sustained negative Z-Score followed by a sharp crossover back towards the center line or into positive territory. This can signal that selling pressure has reached an exhaustion point and accumulation (buying) is beginning.
Potential Short Entry: Look for a sustained positive Z-Score followed by a sharp crossover back towards the center line or into negative territory. This suggests that buying momentum is exhausted and distribution (selling) is commencing.
3. The Volume Spike Filter
The indicator also alerts you to candles with significantly high volume relative to the recent average. Use this as a filter:
Breakout Validation: A price breakout is more likely to be legitimate if it is accompanied by a high volume spike confirmed by a strong BVR reading in the direction of the breakout.
Reversal Warning: A high volume spike at a key support or resistance level, particularly one that leads to a sharp turn in the BVR, can strongly signal a climactic reversal in progress.
DTR Volume FVGDTR Volume FVG detects bullish and bearish Fair Value Gaps and shows how much volume occurred inside each gap. Instead of only drawing the imbalance, the indicator analyzes a lower timeframe and builds a small volume profile inside every FVG. This helps you understand which gaps are strong, weak, likely to hold, or likely to fill.
How It Works:
- The indicator finds FVGs using a lower timeframe (Auto mode or manual selection).
- Each FVG is drawn as a colored zone: green for bullish, purple for bearish.
- Inside the gap, the script shows volume distribution using horizontal boxes.
- The FVG extends forward in time until the gap is fully filled or invalidated.
- Once price closes through the gap, the zone is removed automatically.
How to Use:
- High volume inside the FVG suggests strong interest and possible support or resistance.
- Low volume suggests the gap may fill more easily.
- Bullish FVGs are used as retracement zones in uptrends.
- Bearish FVGs are used as retracement zones in downtrends.
- Use the Display option to hide the volume boxes if you want a cleaner chart.
Best For:
- Finding strong retracement zones
- Identifying which gaps matter
- Understanding how price and volume behaved during displacement
- Improving entries and stop placement with volume levels inside FVGs
This indicator gives a clearer view of which imbalances are important by combining FVG structure with real volume data.






















